ENH: foamToEnsight : filter proc patches only if running parallel

This commit is contained in:
mattijs
2010-10-14 18:31:08 +01:00
parent 626fb9c542
commit 1f2829ac2a

View File

@ -70,12 +70,15 @@ void Foam::ensightMesh::correct()
// Patches are output. Check that they're synced. // Patches are output. Check that they're synced.
mesh_.boundaryMesh().checkParallelSync(true); mesh_.boundaryMesh().checkParallelSync(true);
allPatchNames_ = wordList::subList allPatchNames_ = mesh_.boundaryMesh().names();
if (Pstream::parRun())
{
allPatchNames_.setSize
( (
mesh_.boundaryMesh().names(),
mesh_.boundary().size() mesh_.boundary().size()
- mesh_.globalData().processorPatches().size() - mesh_.globalData().processorPatches().size()
); );
}
if (patches_) if (patches_)
{ {