HP MLIB User's Guide Vol. 2 7th Ed.
Chapter 14 METIS Routines 997
Converts a mesh into a nodal graph Auxiliary Routines
Auxiliary Routines
The following sections describe the auxiliary routines included with METIS.
Name mlib_METIS_MeshToNodal
Converts a mesh into a nodal graph
Purpose This function is used to convert a mesh into a nodal graph. It provides the
function of the mesh2nodal program.
Usage VECLIB:
void mlib_METIS_MeshToNodal (int *ne, int *nn, int *elmnts, int *etype,
int *numflag, int *nxadj, int *nadjncy)
VECLIB8:
void mlib_METIS_MeshToNodal (long long *ne, long long *nn, long long
*elmnts, long long *etype, long long *numflag, long long *nxadj, long
long *nadjncy)
Arguments ne The number of elements in the mesh.
nn The number of nodes in the mesh.
elmnts The element node array storing the mesh.
etype Indicates the type of the elements in the mesh. etype
can take the following values:
1—The elements are triangles.
2—The elements are tetrahedra.
3—The elements are hexahedra (bricks).
4—The elements are quadrilaterals.
numflag Used to indicate which numbering scheme is used for
the adjacency structure of the graph. numflag can take
the following two values:
0—C-Style numbering is assumed that starts from 0
1—Fortran-style numbering is assumed that starts
from 1