mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: pointZone: Check point in same (or no) zone on all processors.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -154,8 +154,15 @@ bool Foam::pointZone::checkParallelSync(const bool report) const
|
||||
|
||||
forAll(maxZone, pointI)
|
||||
{
|
||||
// Check point in zone on both sides
|
||||
if (maxZone[pointI] != minZone[pointI])
|
||||
// Check point in same (or no) zone on all processors
|
||||
if
|
||||
(
|
||||
(
|
||||
maxZone[pointI] != -1
|
||||
|| minZone[pointI] != labelMax
|
||||
)
|
||||
&& (maxZone[pointI] != minZone[pointI])
|
||||
)
|
||||
{
|
||||
if (report && !error)
|
||||
{
|
||||
@ -167,7 +174,8 @@ bool Foam::pointZone::checkParallelSync(const bool report) const
|
||||
<< (minZone[pointI] == labelMax ? -1 : minZone[pointI])
|
||||
<< " on some processors and in zone "
|
||||
<< maxZone[pointI]
|
||||
<< " on some other processors."
|
||||
<< " on some other processors." << nl
|
||||
<< "(suppressing further warnings)"
|
||||
<< endl;
|
||||
}
|
||||
error = true;
|
||||
|
||||
Reference in New Issue
Block a user