22 int main(
int argc,
char *argv[])
37 printf(
"*** Meshes with more than one balancing constraint are not supported yet.\n");
48 switch (params->
gtype) {
74 printf(
"***It seems that Metis did not free all of its memory! Report this.\n");
79 printf(
"\n***Metis returned with an error.\n");
101 printf(
"******************************************************************************\n");
103 printf(
" (HEAD: %s, Built on: %s, %s)\n", SVNINFO, __DATE__, __TIME__);
104 printf(
" size of idx_t: %zubits, real_t: %zubits, idx_t *: %zubits\n",
107 printf(
"Mesh Information ------------------------------------------------------------\n");
108 printf(
" Name: %s, #Elements: %"PRIDX", #Nodes: %"PRIDX"\n",
111 printf(
"Options ---------------------------------------------------------------------\n");
112 printf(
" gtype=%s, ncommon=%"PRIDX
", outfile=%s\n",
132 printf(
"\nTiming Information ----------------------------------------------------------\n");
136 printf(
"\nMemory Information ----------------------------------------------------------\n");
138 printf(
"******************************************************************************\n");
#define gk_startcputimer(tmr)
int main(int argc, char *argv[])
#define gk_stopcputimer(tmr)
mesh_t * ReadMesh(params_t *params)
size_t gk_GetMaxMemoryUsed()
NonlinearFactorGraph graph
params_t * parse_cmdline(int argc, char *argv[])
size_t gk_GetCurMemoryUsed()
void M2GPrintInfo(params_t *params, mesh_t *mesh)
static char gtypenames[][15]
void M2GReportResults(params_t *params, mesh_t *mesh, graph_t *graph)
static SmartStereoProjectionParams params
void gk_malloc_cleanup(int showstats)
#define gk_getcputimer(tmr)
int METIS_MeshToNodal(idx_t *ne, idx_t *nn, idx_t *eptr, idx_t *eind, idx_t *numflag, idx_t **r_xadj, idx_t **r_adjncy)
void gk_free(void **ptr1,...)
void WriteGraph(graph_t *graph, char *filename)
int METIS_MeshToDual(idx_t *ne, idx_t *nn, idx_t *eptr, idx_t *eind, idx_t *ncommon, idx_t *numflag, idx_t **r_xadj, idx_t **r_adjncy)