DiscretizationSetType

Sets the creation method for the disc.

Synopsis

#include "discretization.h"  
int DiscretizationSetType(Discretization disc, DiscretizationType method)
Collective on Discretization

Input Parameters

disc - The Discretization context
method - A known method

Options Database Command

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

Notes

See "petsc/include/discretization.h" for available methods (for instance)
DISC_TRIANGULAR_2D_LINEAR -Triangular 2D linear discretization

Normally, it is best to use the DiscretizationSetFromOptions() command and then set the Discretization 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 DiscretizationSetType() 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

Discretization, set, type

See Also

DiscretizationSetSerializeType()

Level:intermediate
Location:
src/grid/discretization/interface/discreg.c
Index of all Discretization routines
Table of Contents for all manual pages
Index of all manual pages