PartitionSetSerializeType

Sets the serialization method for the part.

Synopsis

#include "mesh.h"  
int PartitionSetSerializeType(Partition part, PartitionSerializeType method)
Collective on Partition

Input Parameters

part - The Partition context
method - A known method

Options Database Command

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

Notes

See "petsc/include/mesh.h" for available methods (for instance)
PARTITION_SER_TRIANGULAR_2D_BINARY -Triangular 2D mesh partition to binary file

Normally, it is best to use the PartitionSetFromOptions() command and then set the Partition 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 PartitionSetSerializeType() 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

partition, set, type, serialization

See Also

PartitionSetType()

Level:intermediate
Location:
src/mesh/interface/partreg.c
Index of all Mesh routines
Table of Contents for all manual pages
Index of all manual pages