GridReformMesh

Reconstruct the grid from the current description and underlying mesh boundary. The old mesh is returned if requested. This allows postprocessing of the mesh before GridReform() is called.

Synopsis

#include "meshMovement.h" 
#include "grid.h" 
#include "gvec.h" 
int GridReformMesh(Grid grid, PetscTruth refine, PointFunction area, PetscTruth newBd, Mesh *oldMesh)
Collective on Grid

Input Parameters

grid - The grid
refine - Flag indicating whether to refine or recreate the mesh
area - [Optional] A function which gives area constraints for refinement after reform, PETSC_NULL for no refinement
newBd - Flag to determine whether the boundary should be generated (PETSC_TRUE) or taken from storage

Output Parameter

oldMesh -The old mesh

Keywords

Grid, mesh, reform, refine

See Also

MeshReform(), GridReform(), GridRefineMesh()

Level:advanced
Location:
src/gvec/interface/meshMovement.c
Index of all GVec routines
Table of Contents for all manual pages
Index of all manual pages