Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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().

60  {
61  int wgtflag = 0;
62  int *vwgt = 0;
63  int *vsize = 0;
64  if (vertWgt.num_elements() > 0)
65  {
66  wgtflag += 1;
67  vwgt = &vertWgt[0];
68  }
69  if (vertSize.num_elements() > 0)
70  {
71  wgtflag += 2;
72  vsize = &vertSize[0];
73  }
74  int numflag = 0;
75  // number of balancing conditions (size of vertex multi-weight)
76  int options[5];
77  options[0] = 0;
78  //METIS_SetDefaultOptions(options);
79  METIS_PartGraphVKway(&nVerts, &xadj[0], &adjcy[0], vwgt, vsize,
80  &wgtflag, &numflag, &nparts, options, &volume,
81  &part[0]);
82  }
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)