GridCalcBoundaryElementMatIndices

This function calculates the global row and column indices for a particular boundary element using alternate variable orderings.

Synopsis

#include "grid.h" 
int GridCalcBoundaryElementMatIndices(Grid grid, int bd, int edge, int midNode, VarOrdering sOrder, VarOrdering tOrder,
                                      PetscTruth useLocal, ElementMat mat)
Not collective

Input Parameters

grid - The Grid
bd - The boundary index
edge - The canonical edge number
midNode - [Optional] The canonical node number of the midnode on the edge, or -1 if none exists
sOrder - The global variable ordering for the shape functions
tOrder - The global variable ordering for the test functions
useLocal - The flag for local numbering of ghost nodes

Output Parameter

mat -The element matrix

Note

The boundary is specified by its index, not marker. Use MeshGetBoundaryIndex() to retrieve this from the marker.

Keywords

element matrix, index, boundary

See Also

ElementMatSetValues()

Level:advanced
Location:
src/grid/interface/elemvec.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages