void FreeWSpace(ctrl_t *ctrl) { ctrl->dbglvl = 0; gk_mcoreDestroy(&ctrl->mcore, (ctrl->dbglvl&DBG_INFO)); if (ctrl->dbglvl&DBG_INFO) { printf(" nbrpool statistics [pe:%"PRIDX"]\n" " nbrpoolsize: %12zu nbrpoolcpos: %12zu\n" " nbrpoolreallocs: %12zu\n\n", ctrl->mype, ctrl->nbrpoolsize, ctrl->nbrpoolcpos, ctrl->nbrpoolreallocs); } gk_free((void **)&ctrl->cnbrpool, LTERM); ctrl->nbrpoolsize = 0; ctrl->nbrpoolcpos = 0; }
void FreeWorkSpace(ctrl_t *ctrl) { gk_mcoreDestroy(&ctrl->mcore, ctrl->dbglvl & METIS_DBG_INFO); IFSET(ctrl->dbglvl, METIS_DBG_INFO, printf(" nbrpool statistics\n" " nbrpoolsize: %12zu nbrpoolcpos: %12zu\n" " nbrpoolreallocs: %12zu\n\n", ctrl->nbrpoolsize, ctrl->nbrpoolcpos, ctrl->nbrpoolreallocs)); gk_free((void **) &ctrl->cnbrpool, &ctrl->vnbrpool, LTERM); ctrl->nbrpoolsize = 0; ctrl->nbrpoolcpos = 0; if (ctrl->minconn) { iFreeMatrix(&(ctrl->adids), ctrl->nparts, INIT_MAXNAD); iFreeMatrix(&(ctrl->adwgts), ctrl->nparts, INIT_MAXNAD); gk_free((void **) &ctrl->pvec1, &ctrl->pvec2, &ctrl->maxnads, &ctrl->nads, LTERM); } }