COMP: adjust tests to compile with current code base

This commit is contained in:
Mark Olesen
2018-02-20 17:24:08 +01:00
parent 87b1bbacd8
commit 03b287ed24
11 changed files with 41 additions and 26 deletions

View File

@ -194,9 +194,7 @@ int main(int argc, char *argv[])
mesh.moving(false);
mesh.topoChanging(false);
label action = rndGen.integer(0, 5);
label action = rndGen.position<label>(0, 5);
if (action == 0)
{
@ -216,7 +214,10 @@ int main(int argc, char *argv[])
for (label i=0; i<nRefine; i++)
{
refineCandidates.append(rndGen.integer(0, mesh.nCells()-1));
refineCandidates.append
(
rndGen.position<label>(0, mesh.nCells()-1)
);
}
labelList cellsToRefine
@ -245,7 +246,9 @@ int main(int argc, char *argv[])
for (label i=0; i<nUnrefine; i++)
{
label index = rndGen.integer(0, allSplitPoints.size()-1);
const label index =
rndGen.position<label>(0, allSplitPoints.size()-1);
candidates.insert(allSplitPoints[index]);
}