Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
Scotch Namespace Reference

Functions

void METIS_PartGraphVKway (int *nVerts, int *xadj, int *adjcy, int *vertWgt, int *vertSize, int *wgtFlag, int *numflag, int *nparts, int *options, int *volume, int *part)
static void PartGraphVKway (int &nVerts, int &nVertConds, Nektar::Array< Nektar::OneD, int > &xadj, Nektar::Array< Nektar::OneD, int > &adjcy, Nektar::Array< Nektar::OneD, int > &vertWgt, Nektar::Array< Nektar::OneD, int > &vertSize, int &nparts, int &volume, Nektar::Array< Nektar::OneD, int > &part)

Function Documentation

void Scotch::METIS_PartGraphVKway ( int *  nVerts,
int *  xadj,
int *  adjcy,
int *  vertWgt,
int *  vertSize,
int *  wgtFlag,
int *  numflag,
int *  nparts,
int *  options,
int *  volume,
int *  part 
)

Referenced by PartGraphVKway().

static void Scotch::PartGraphVKway ( int &  nVerts,
int &  nVertConds,
Nektar::Array< Nektar::OneD, int > &  xadj,
Nektar::Array< Nektar::OneD, int > &  adjcy,
Nektar::Array< Nektar::OneD, int > &  vertWgt,
Nektar::Array< Nektar::OneD, int > &  vertSize,
int &  nparts,
int &  volume,
Nektar::Array< Nektar::OneD, int > &  part 
)
inlinestatic

Definition at line 50 of file Scotch.hpp.

References METIS_PartGraphVKway().

{
int wgtflag = 0;
int *vwgt = 0;
int *vsize = 0;
if (vertWgt.num_elements() > 0)
{
wgtflag += 1;
vwgt = &vertWgt[0];
}
if (vertSize.num_elements() > 0)
{
wgtflag += 2;
vsize = &vertSize[0];
}
int numflag = 0;
// number of balancing conditions (size of vertex multi-weight)
int options[5];
options[0] = 0;
//METIS_SetDefaultOptions(options);
METIS_PartGraphVKway(&nVerts, &xadj[0], &adjcy[0], vwgt, vsize,
&wgtflag, &numflag, &nparts, options, &volume,
&part[0]);
}