Go to the documentation of this file.
22 int main(
int argc,
char *argv[])
37 printf(
"*** Meshes with more than one balancing constraint are not supported yet.\n");
83 printf(
"***It seems that Metis did not free all of its memory! Report this.\n");
88 printf(
"\n***Metis returned with an error.\n");
114 if (
params->ufactor == -1) {
121 printf(
"******************************************************************************\n");
123 printf(
" (HEAD: %s, Built on: %s, %s)\n", SVNINFO, __DATE__, __TIME__);
124 printf(
" size of idx_t: %zubits, real_t: %zubits, idx_t *: %zubits\n",
127 printf(
"Mesh Information ------------------------------------------------------------\n");
128 printf(
" Name: %s, #Elements: %"PRIDX", #Nodes: %"PRIDX", #Parts: %"PRIDX"\n",
131 printf(
" Balancing Constraints: %"PRIDX"\n", mesh->
ncon);
134 printf(
"Options ---------------------------------------------------------------------\n");
135 printf(
" ptype=%s, objtype=%s, ctype=%s, rtype=%s, iptype=%s\n",
139 printf(
" dbglvl=%"PRIDX", ufactor=%.3f, minconn=%s, contig=%s, nooutput=%s\n",
142 (
params->minconn ?
"YES" :
"NO"),
143 (
params->contig ?
"YES" :
"NO"),
144 (
params->nooutput ?
"YES" :
"NO")
150 printf(
" gtype=%s, ncommon=%"PRIDX", niter=%"PRIDX", ncuts=%"PRIDX"\n",
156 printf(
"Recursive Partitioning ------------------------------------------------------\n");
159 printf(
"Direct k-way Partitioning ---------------------------------------------------\n");
176 printf(
" - %s: %"PRIDX".\n\n",
182 printf(
"\nTiming Information ----------------------------------------------------------\n");
186 printf(
"\nMemory Information ----------------------------------------------------------\n");
187 printf(
" Max memory used:\t\t %7.3"PRREAL" MB\n", (
real_t)(
params->maxmemory/(1024.0*1024.0)));
188 printf(
"******************************************************************************\n");
#define I2RUBFACTOR(ufactor)
idx_t idx_t idx_t idx_t idx_t idx_t real_t idx_t idx_t * objval
static char iptypenames[][15]
void gk_free(void **ptr1,...)
int METIS_PartMeshNodal(idx_t *ne, idx_t *nn, idx_t *eptr, idx_t *eind, idx_t *vwgt, idx_t *vsize, idx_t *nparts, real_t *tpwgts, idx_t *options, idx_t *objval, idx_t *epart, idx_t *npart)
#define gk_getcputimer(tmr)
#define KMETIS_DEFAULT_UFACTOR
void WriteMeshPartition(char *fname, idx_t nparts, idx_t ne, idx_t *epart, idx_t nn, idx_t *npart)
static const SmartProjectionParams params
idx_t idx_t idx_t idx_t idx_t idx_t real_t idx_t idx_t idx_t idx_t * npart
#define gk_startcputimer(tmr)
static char ctypenames[][15]
static char rtypenames[][15]
size_t gk_GetMaxMemoryUsed()
void MPPrintInfo(params_t *params, mesh_t *mesh)
params_t * parse_cmdline(int argc, char *argv[])
void ReadTPwgts(params_t *params, idx_t ncon)
int METIS_SetDefaultOptions(idx_t *options)
idx_t idx_t idx_t idx_t idx_t idx_t real_t idx_t idx_t idx_t * epart
static char objtypenames[][15]
#define PMETIS_DEFAULT_UFACTOR
static char ptypenames[][15]
static char gtypenames[][15]
int main(int argc, char *argv[])
size_t gk_GetCurMemoryUsed()
mesh_t * ReadMesh(params_t *params)
#define gk_stopcputimer(tmr)
void gk_malloc_cleanup(int showstats)
void MPReportResults(params_t *params, mesh_t *mesh, idx_t *epart, idx_t *npart, idx_t objval)
int METIS_PartMeshDual(idx_t *ne, idx_t *nn, idx_t *eptr, idx_t *eind, idx_t *vwgt, idx_t *vsize, idx_t *ncommon, idx_t *nparts, real_t *tpwgts, idx_t *options, idx_t *objval, idx_t *epart, idx_t *npart)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:03:11