* This function is the entry point for PMETIS **************************************************************************/
| 20 | * This function is the entry point for PMETIS |
| 21 | **************************************************************************/ |
| 22 | void METIS_PartGraphRecursive(int *nvtxs, idxtype *xadj, idxtype *adjncy, idxtype *vwgt, |
| 23 | idxtype *adjwgt, int *wgtflag, int *numflag, int *nparts, |
| 24 | int *options, int *edgecut, idxtype *part) |
| 25 | { |
| 26 | int i; |
| 27 | float *tpwgts; |
| 28 | |
| 29 | tpwgts = fmalloc(*nparts, "KMETIS: tpwgts"); |
| 30 | for (i=0; i<*nparts; i++) |
| 31 | tpwgts[i] = 1.0/(1.0*(*nparts)); |
| 32 | |
| 33 | METIS_WPartGraphRecursive(nvtxs, xadj, adjncy, vwgt, adjwgt, wgtflag, numflag, nparts, |
| 34 | tpwgts, options, edgecut, part); |
| 35 | |
| 36 | free(tpwgts); |
| 37 | } |
| 38 | |
| 39 | |
| 40 |
no test coverage detected