MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / METIS_PartGraphRecursive

Function METIS_PartGraphRecursive

OTHER/METIS/pmetis.c:22–37  ·  view source on GitHub ↗

* This function is the entry point for PMETIS **************************************************************************/

Source from the content-addressed store, hash-verified

20* This function is the entry point for PMETIS
21**************************************************************************/
22void 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

Callers 7

METIS_PARTGRAPHRECURSIVEFunction · 0.85
metis_partgraphrecursiveFunction · 0.85
partitionMethod · 0.85
partitionGraphMethod · 0.85
MetisWrapper.cppFile · 0.85

Calls 2

fmallocFunction · 0.85

Tested by

no test coverage detected