MeshGetBoundaryStart

Retrieves the canonical node number of the first node on the specified boundary.

Synopsis

#include "mesh.h" 
int MeshGetBoundaryStart(Mesh mesh, int boundary, PetscTruth ghost, int *node)
Not collective

Input Parameters

mesh - The mesh
boundary - The boundary marker
ghost - Flag for including ghost nodes

Output Parameter

node -The canonical node number

Note

This is typically used as an iteration construct with MeshGetBoundaryNext(),
for example:

MeshGetBoundaryStart(mesh, OUTER_BD, &node, PETSC_FALSE);
while (node >= 0) {
  PetscPrintf(PETSC_COMM_SELF, "I have boundary node %d\n", node);
  MeshGetBoundaryNext(mesh, OUTER_BD, &node, PETSC_FALSE);
}

Keywords

mesh, boundary, iterator

See Also

MeshGetBoundaryNext()

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