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:
@ -48,7 +48,7 @@ void testPackedList(const polyMesh& mesh, Random& rndGen)
|
||||
PackedList<3> bits(mesh.nEdges());
|
||||
forAll(bits, i)
|
||||
{
|
||||
bits.set(i, rndGen.integer(0,3));
|
||||
bits.set(i, rndGen.position<label>(0,3));
|
||||
}
|
||||
|
||||
labelList edgeValues(mesh.nEdges());
|
||||
@ -95,7 +95,7 @@ void testPackedList(const polyMesh& mesh, Random& rndGen)
|
||||
PackedList<3> bits(mesh.nPoints());
|
||||
forAll(bits, i)
|
||||
{
|
||||
bits.set(i, rndGen.integer(0,3));
|
||||
bits.set(i, rndGen.position<label>(0,3));
|
||||
}
|
||||
|
||||
labelList pointValues(mesh.nPoints());
|
||||
@ -143,7 +143,7 @@ void testPackedList(const polyMesh& mesh, Random& rndGen)
|
||||
PackedList<3> bits(mesh.nFaces());
|
||||
forAll(bits, facei)
|
||||
{
|
||||
bits.set(facei, rndGen.integer(0,3));
|
||||
bits.set(facei, rndGen.position<label>(0,3));
|
||||
}
|
||||
|
||||
labelList faceValues(mesh.nFaces());
|
||||
@ -213,7 +213,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
|
||||
|
||||
forAll(localPoints, i)
|
||||
{
|
||||
const point pt = localPoints[i] + 1e-4*rndGen.vector01();
|
||||
const point pt = localPoints[i] + 1e-4*rndGen.sample01<vector>();
|
||||
|
||||
label meshPointi = allBoundary.meshPoints()[i];
|
||||
|
||||
@ -298,7 +298,8 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
|
||||
{
|
||||
const edge& e = edges[i];
|
||||
|
||||
const point pt = e.centre(localPoints) + 1e-4*rndGen.vector01();
|
||||
const point pt =
|
||||
e.centre(localPoints) + 1e-4*rndGen.sample01<vector>();
|
||||
|
||||
label meshEdgeI = meshEdges[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user