22 int main(
int argc,
char *argv[])
37 printf(
"*** Meshes with more than one balancing constraint are not supported yet.\n");
67 switch (params->
gtype) {
71 params->
tpwgts, options, &objval, epart, npart);
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");
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"),
147 printf(
" seed=%"PRIDX
", niter=%"PRIDX
", ncuts=%"PRIDX
"\n",
150 printf(
" gtype=%s, ncommon=%"PRIDX
", niter=%"PRIDX
", ncuts=%"PRIDX
"\n",
154 switch (params->
ptype) {
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");
188 printf(
"******************************************************************************\n");
#define I2RUBFACTOR(ufactor)
#define gk_startcputimer(tmr)
#define gk_stopcputimer(tmr)
static char rtypenames[][15]
mesh_t * ReadMesh(params_t *params)
size_t gk_GetMaxMemoryUsed()
idx_t idx_t idx_t idx_t idx_t idx_t real_t idx_t idx_t idx_t * epart
int METIS_SetDefaultOptions(idx_t *options)
static const SmartProjectionParams params
params_t * parse_cmdline(int argc, char *argv[])
void MPPrintInfo(params_t *params, mesh_t *mesh)
size_t gk_GetCurMemoryUsed()
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)
void ReadTPwgts(params_t *params, idx_t ncon)
static char objtypenames[][15]
static char ptypenames[][15]
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)
idx_t idx_t idx_t idx_t idx_t idx_t real_t idx_t idx_t * objval
static char gtypenames[][15]
void WriteMeshPartition(char *fname, idx_t nparts, idx_t ne, idx_t *epart, idx_t nn, idx_t *npart)
idx_t idx_t idx_t idx_t idx_t idx_t real_t idx_t idx_t idx_t idx_t * npart
void gk_malloc_cleanup(int showstats)
#define gk_getcputimer(tmr)
static char iptypenames[][15]
int main(int argc, char *argv[])
void gk_free(void **ptr1,...)
static char ctypenames[][15]
#define PMETIS_DEFAULT_UFACTOR
void MPReportResults(params_t *params, mesh_t *mesh, idx_t *epart, idx_t *npart, idx_t objval)
#define KMETIS_DEFAULT_UFACTOR