HP MLIB User's Guide Vol. 2 7th Ed.
988 HP MLIB User’s Guide
mlib_METIS_PartMeshDual Partitions a mesh
Name mlib_METIS_PartMeshDual
Partitions a mesh
Purpose This function is used to partition a mesh into k equal-size parts. It provides the
functionality of the partdmesh program.
Usage VECLIB:
void mlib_METIS_PartMeshDual (int *ne, int *nn, int *elmnts, int
*etype, int *numflag, int *nparts, int *edgecut, int *epart, int *npart)
VECLIB8:
void mlib_METIS_PartMeshDual (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.
edgecut Upon successful completion, this variable stores the
number of edges that are cut by the partition in the
dual graph.
epart This is the vector of size ne that upon successful
completion stores the partition vector for the elements
of the mesh. The numbering of this vector starts from
either 0 or 1, depending on the value of numflag.