mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: checkMesh : moved parallel checks into zones
This commit is contained in:
@ -7,32 +7,6 @@
|
|||||||
#include "pointSet.H"
|
#include "pointSet.H"
|
||||||
#include "IOmanip.H"
|
#include "IOmanip.H"
|
||||||
|
|
||||||
bool Foam::checkSync(const wordList& names)
|
|
||||||
{
|
|
||||||
List<wordList> allNames(Pstream::nProcs());
|
|
||||||
allNames[Pstream::myProcNo()] = names;
|
|
||||||
Pstream::gatherList(allNames);
|
|
||||||
Pstream::scatterList(allNames);
|
|
||||||
|
|
||||||
bool hasError = false;
|
|
||||||
|
|
||||||
for (label procI = 1; procI < allNames.size(); procI++)
|
|
||||||
{
|
|
||||||
if (allNames[procI] != allNames[0])
|
|
||||||
{
|
|
||||||
hasError = true;
|
|
||||||
|
|
||||||
Info<< " ***Inconsistent zones across processors, "
|
|
||||||
"processor 0 has zones:" << allNames[0]
|
|
||||||
<< ", processor " << procI << " has zones:"
|
|
||||||
<< allNames[procI]
|
|
||||||
<< endl;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return hasError;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Foam::label Foam::checkTopology
|
Foam::label Foam::checkTopology
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
|
|||||||
@ -5,7 +5,5 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
class polyMesh;
|
class polyMesh;
|
||||||
|
|
||||||
bool checkSync(const wordList& names);
|
|
||||||
|
|
||||||
label checkTopology(const polyMesh&, const bool, const bool);
|
label checkTopology(const polyMesh&, const bool, const bool);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user