65 if (
sizeof(idxtype) ==
sizeof(
int)) {
74 SAFENEWARR(adjncy, idxtype, pXadj[iTotVertices]);
79 SAFENEWARR(adjwgt, idxtype, pXadj[iTotVertices]);
83 for (
int i = 0; i < iTotVertices; i++) {
85 part[i] = pParAmgProcs[i];
89 for (
int i = 0; i < iTotVertices; i++) {
90 vwgt[i] = pVertexWgts[i];
94 for (
int i = 0; i < pXadj[iTotVertices]; i++) {
95 adjncy[i] = pAdjncy[i];
99 for (
int i = 0; i < pXadj[iTotVertices]; i++) {
100 adjwgt[i] = pCommWgts[i];
105 if (pVertexWgts && pCommWgts) {
107 }
else if (pVertexWgts) {
109 }
else if (pCommWgts) {
115 METIS_PartGraphVKway(&iTotVertices,
128 if (
sizeof(idxtype) !=
sizeof(
int)) {
129 for (
int i = 0; i < iTotVertices; i++) {
130 pParAmgProcs[i] = part[i];
#define SAFEDELETEARR(pnt)
int mbdyn_METIS_PartGraph(int iTotVertices, int *pXadj, int *pAdjncy, int *pVertexWgts, int *pCommWgts, int *pEdgeWgts, int DataCommSize, int *pParAmgProcs)
#define SAFENEWARR(pnt, item, sz)