Commit 77592d44 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

modified data-type to allow metis specific real type

parent ee4ea74b
......@@ -298,15 +298,15 @@ namespace AMDiS { namespace Parallel {
int ncon = 1; // one weight at each vertex!
int nparts = mpiSize; // number of partitions
vector<double> tpwgts(mpiSize);
double ubvec = 1.05;
vector<real_t> tpwgts(mpiSize);
real_t ubvec = 1.05;
int options[4] = {0, 0, 15, PARMETIS_PSR_COUPLED}; // default options
int edgecut = -1;
vector<int> part(nElements);
// set tpwgts
for (int i = 0; i < mpiSize; i++)
tpwgts[i] = 1.0 / static_cast<double>(nparts);
tpwgts[i] = 1.0 / static_cast<real_t>(nparts);
// float scale = 10000.0 / maxWgt;
for (int i = 0; i < nElements; i++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment