Skip to content
Snippets Groups Projects
Commit 53947016 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

BUG: metis PrecisionAdaptor used ref() instead of constCast() - closes #1354

- the scotch interface still uses non-const pointers when passing in
  values. For the ConstPrecisionAdaptor this means that we need to cheat
  with a constCast(). Using ref() will rightly trigger complaints about
  trying to modify a const object.
parent 7d7a3a78
No related branches found
No related tags found
No related merge requests found
...@@ -206,8 +206,8 @@ Foam::label Foam::metisDecomp::decomposeSerial ...@@ -206,8 +206,8 @@ Foam::label Foam::metisDecomp::decomposeSerial
( (
&numCells, // num vertices in graph &numCells, // num vertices in graph
&ncon, // num balancing constraints &ncon, // num balancing constraints
xadj_metis.ref().data(), // indexing into adjncy xadj_metis.constCast().data(), // indexing into adjncy
adjncy_metis.ref().data(), // neighbour info adjncy_metis.constCast().data(), // neighbour info
cellWeights.data(), // vertex wts cellWeights.data(), // vertex wts
nullptr, // vsize: total communication vol nullptr, // vsize: total communication vol
faceWeights.data(), // edge wts faceWeights.data(), // edge wts
...@@ -225,8 +225,8 @@ Foam::label Foam::metisDecomp::decomposeSerial ...@@ -225,8 +225,8 @@ Foam::label Foam::metisDecomp::decomposeSerial
( (
&numCells, // num vertices in graph &numCells, // num vertices in graph
&ncon, // num balancing constraints &ncon, // num balancing constraints
xadj_metis.ref().data(), // indexing into adjncy xadj_metis.constCast().data(), // indexing into adjncy
adjncy_metis.ref().data(), // neighbour info adjncy_metis.constCast().data(), // neighbour info
cellWeights.data(), // vertex wts cellWeights.data(), // vertex wts
nullptr, // vsize: total communication vol nullptr, // vsize: total communication vol
faceWeights.data(), // edge wts faceWeights.data(), // edge wts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment