HP MLIB User's Guide Vol. 2 7th Ed.

Chapter 14 METIS Routines 1001
Estimates the amount of memory that will be used mlib_METIS_EstimateMemory
Name mlib_METIS_EstimateMemory
Estimates the amount of memory that will be used
Purpose This function is used to estimate the amount of memory that will be used. Even
though METIS dynamically allocated the amount of memory that it need, this
function can be useful in determining if the amount of memory in the system is
sufficient for METIS.
Usage VECLIB:
void mlib_METIS_EstimateMemory (int *n, int *xadj, int *adjncy, int
*numflag, int *optype, int *nbytes)
VECLIB8:
void mlib_METIS_EstimateMemory (long long *n, long long *xadj, long
long *adjncy, long long *numflag, long long *optype, long long *nbytes)
Arguments n The number of vertices in the graph.
xadj,
adjncy
The adjacency structure of the graph.
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
optype Indicates the operation for which the memory will be
estimated. optype can take the following values:
1—Estimates the memory needed for
mlib_METIS_PartGraphRecursive and
mlib_METIS_WPartGraphRecursive
2—Estimates the memory needed for
mlib_METIS_PartGraphKway and
mlib_METIS_WPartGraphKway
3—Estimates the memory needed for
mlib_METIS_EdgeND
4—Estimates the memory needed for
mlib_METIS_NodeND, but does not take into account
memory saved due to compression.
nbytes Upon return, nbytes stores an estimate on the number
of bytes that METIS requires.