In this older version of the framework, FEM_Get_node and FEM_Get_elem return the total number of nodes and elements, including ghosts. The routines below return the index of the first ghost node or element, where ghosts are numbered after all the real elements. This old ghost numbering scheme does not work well when adding new ghosts, which is why the new ghost numbering scheme describes in Section 5.1 is used in the new API.
int FEM_Get_node_ghost(void);
int FEM_Get_elem_ghost(int elemType);
The examples below iterate over the real and ghost elements using the old numbering:
January 17, 2008
FEM Homepage
Charm Homepage