/* * Copyright 1997, Regents of the University of Minnesota * * backcompat.c * * This file ensures backwards compatability with previous ParMETIS releases * * Started 10/19/96 * George * * $Id: backcompat.c,v 1.2 2003/07/21 17:18:48 karypis Exp $ * */ #include /***************************************************************************** * This function computes a partitioning. *****************************************************************************/ void ParMETIS_PartKway(idxtype *vtxdist, idxtype *xadj, idxtype *adjncy, idxtype *vwgt, idxtype *adjwgt, int *wgtflag, int *numflag, int *nparts, int *options, int *edgecut, idxtype *part, MPI_Comm *comm) { int i; int ncon = 1; float *tpwgts, ubvec[MAXNCON]; int myoptions[10]; tpwgts = fmalloc(*nparts*ncon, "tpwgts"); for (i=0; i<*nparts*ncon; i++) tpwgts[i] = 1.0/(float)(*nparts); for (i=0; i