FieldClassMapSetSerializeType

Sets the serialization method for the map.

Synopsis

#include "grid.h" 
int FieldClassMapSetSerializeType(FieldClassMap map, FieldClassMapSerializeType method)
Collective on FieldClassMap

Input Parameters

map - The FieldClassMap context
method - A known method

Options Database Command

-class_map_serialize_type <method> -Sets the method; use -help for a list 8 of available methods (for instance, tri2d_binary)

Notes

See "petsc/include/grid.h" for available methods (for instance)
CLASS_MAP_SER_TRIANGULAR_2D_BINARY -Triangular 2D map to binary file

Normally, it is best to use the FieldClassMapSetFromOptions() command and then set the FieldClassMap 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 FieldClassMapSetSerializeType() 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

class, field class, class map, set, type, serialization

See Also

FieldClassMapSetType()

Level:intermediate
Location:
src/grid/interface/fieldClassMapReg.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages