Skip to content
Snippets Groups Projects
Commit 790146fb authored by mattijs's avatar mattijs
Browse files

ENH: Test-syncTools.C : cannot use magSqr with point::max

parent 523b88fd
Branches
Tags
No related merge requests found
...@@ -210,7 +210,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen) ...@@ -210,7 +210,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
{ {
// Create some data. Use slightly perturbed positions. // Create some data. Use slightly perturbed positions.
Map<point> sparseData; Map<point> sparseData;
pointField fullData(mesh.nPoints(), point::max); pointField fullData(mesh.nPoints(), point(GREAT, GREAT, GREAT));
forAll(localPoints, i) forAll(localPoints, i)
{ {
...@@ -236,7 +236,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen) ...@@ -236,7 +236,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
mesh, mesh,
fullData, fullData,
minMagSqrEqOp<point>(), minMagSqrEqOp<point>(),
point::max point(GREAT, GREAT, GREAT)
// true // apply separation // true // apply separation
); );
...@@ -246,7 +246,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen) ...@@ -246,7 +246,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
{ {
const point& fullPt = fullData[meshPointI]; const point& fullPt = fullData[meshPointI];
if (fullPt != point::max) if (fullPt != point(GREAT, GREAT, GREAT))
{ {
const point& sparsePt = sparseData[meshPointI]; const point& sparsePt = sparseData[meshPointI];
...@@ -286,7 +286,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen) ...@@ -286,7 +286,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
{ {
// Create some data. Use slightly perturbed positions. // Create some data. Use slightly perturbed positions.
EdgeMap<point> sparseData; EdgeMap<point> sparseData;
pointField fullData(mesh.nEdges(), point::max); pointField fullData(mesh.nEdges(), point(GREAT, GREAT, GREAT));
const edgeList& edges = allBoundary.edges(); const edgeList& edges = allBoundary.edges();
const labelList meshEdges = allBoundary.meshEdges const labelList meshEdges = allBoundary.meshEdges
...@@ -320,7 +320,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen) ...@@ -320,7 +320,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
mesh, mesh,
fullData, fullData,
minMagSqrEqOp<point>(), minMagSqrEqOp<point>(),
point::max point(GREAT, GREAT, GREAT)
); );
// Compare. // Compare.
...@@ -329,7 +329,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen) ...@@ -329,7 +329,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
{ {
const point& fullPt = fullData[meshEdgeI]; const point& fullPt = fullData[meshEdgeI];
if (fullPt != point::max) if (fullPt != point(GREAT, GREAT, GREAT))
{ {
const point& sparsePt = sparseData[mesh.edges()[meshEdgeI]]; const point& sparsePt = sparseData[mesh.edges()[meshEdgeI]];
...@@ -385,7 +385,7 @@ void testPointSync(const polyMesh& mesh, Random& rndGen) ...@@ -385,7 +385,7 @@ void testPointSync(const polyMesh& mesh, Random& rndGen)
mesh, mesh,
syncedPoints, syncedPoints,
minMagSqrEqOp<point>(), minMagSqrEqOp<point>(),
point::max point(GREAT, GREAT, GREAT)
); );
forAll(syncedPoints, pointI) forAll(syncedPoints, pointI)
...@@ -461,7 +461,7 @@ void testEdgeSync(const polyMesh& mesh, Random& rndGen) ...@@ -461,7 +461,7 @@ void testEdgeSync(const polyMesh& mesh, Random& rndGen)
mesh, mesh,
syncedMids, syncedMids,
minMagSqrEqOp<point>(), minMagSqrEqOp<point>(),
point::max point(GREAT, GREAT, GREAT)
); );
forAll(syncedMids, edgeI) forAll(syncedMids, edgeI)
......
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