mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: adjust tests to compile with current code base
This commit is contained in:
@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user