HP MLIB User's Guide Vol. 2 7th Ed.
986 HP MLIB User’s Guide
Mesh Partitioning Routines Partitions a mesh
Mesh Partitioning Routines
The following sections describe the mesh partitioning routines included with
METIS.
Name mlib_METIS_PartMeshNodal
Partitions a mesh
Purpose This function is used to partition a mesh into k parts. It provides the
functionality of the partnmesh program.
Usage VECLIB:
void mlib_METIS_PartMeshNodal (int *ne, int *nn, int *elmnts, int
*etype, int *numflag, int *nparts, int *edgecut, int *epart, int *npart)
VECLIB8:
void mlib_METIS_PartMeshNodal (long long *ne, long long *nn, long
long *elmnts, long long *etype, long long *numflag, long long *nparts,
long long *edgecut, long long *epart, long long *npart)
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 element node array. 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
nparts The number of parts to partition the mesh.