Skip to content
Snippets Groups Projects
Commit 0efac64b authored by laurence's avatar laurence
Browse files

BUG: pointZone: Check point in same (or no) zone on all processors.

parent 686b8f19
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -492,7 +492,7 @@ bool Foam::ZoneMesh<ZoneType, MeshType>::checkParallelSync ...@@ -492,7 +492,7 @@ bool Foam::ZoneMesh<ZoneType, MeshType>::checkParallelSync
<< " of type " << zones[zoneI].type() << " of type " << zones[zoneI].type()
<< " is not correctly synchronised" << " is not correctly synchronised"
<< " across coupled boundaries." << " across coupled boundaries."
<< " (coupled faces are either not both " << " (coupled faces are either not both"
<< " present in set or have same flipmap)" << endl; << " present in set or have same flipmap)" << endl;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -154,8 +154,15 @@ bool Foam::pointZone::checkParallelSync(const bool report) const ...@@ -154,8 +154,15 @@ bool Foam::pointZone::checkParallelSync(const bool report) const
forAll(maxZone, pointI) forAll(maxZone, pointI)
{ {
// Check point in zone on both sides // Check point in same (or no) zone on all processors
if (maxZone[pointI] != minZone[pointI]) if
(
(
maxZone[pointI] != -1
|| minZone[pointI] != labelMax
)
&& (maxZone[pointI] != minZone[pointI])
)
{ {
if (report && !error) if (report && !error)
{ {
...@@ -167,7 +174,8 @@ bool Foam::pointZone::checkParallelSync(const bool report) const ...@@ -167,7 +174,8 @@ bool Foam::pointZone::checkParallelSync(const bool report) const
<< (minZone[pointI] == labelMax ? -1 : minZone[pointI]) << (minZone[pointI] == labelMax ? -1 : minZone[pointI])
<< " on some processors and in zone " << " on some processors and in zone "
<< maxZone[pointI] << maxZone[pointI]
<< " on some other processors." << " on some other processors." << nl
<< "(suppressing further warnings)"
<< endl; << endl;
} }
error = true; error = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment