TSSetSerializeType

Sets the serialization method for the ts.

Synopsis

#include "petscts.h"  
int TSSetSerializeType(TS ts, TSSerializeType method)
Collective on TS

Input Parameters

ts - The TS context
method - A known method

Options Database Command

-ts_serialize_type <method> -Sets the method; use -help for a list of available methods (for instance, gbeuler_binary)

Notes

See "petsc/include/ts.h" for available methods (for instance)
GTS_SER_BEULER_BINARY -Grid Backwards Euler TS to binary file

Normally, it is best to use the TSSetFromOptions() command and then set the TS type from the options database rather than by using this routine. Using the options database provides the user with maximum flexibility in evaluating the many different solvers. The TSSetSerializeType() routine is provided for those situations where it is necessary to set the application ordering independently of the command line or options database. This might be the case, for example, when the choice of solver changes during the execution of the program, and the user's application is taking responsibility for choosing the appropriate method. In other words, this routine is not for beginners.

Keywords

TS, set, type, serialization

See Also

TSSetType()

Level:intermediate
Location:
src/ts/interface/tsreg.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages