MeshSetType

Sets the creation method for the mesh.

Synopsis

#include "mesh.h"  
int MeshSetType(Mesh mesh, MeshType method)
Collective on Mesh

Input Parameters

mesh - The Mesh context
method - A known method

Options Database Command

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

Notes

See "petsc/include/mesh.h" for available methods (for instance)
MESH_TRIANGULAR_2D -Triangular 2D mesh

Normally, it is best to use the MeshSetFromOptions() command and then set the Mesh 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 MeshSetType() 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

mesh, set, type

See Also

MeshSetSerializeType()

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