From 1f2829ac2aa374b12e232d4a7265401f03fc357b Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Thu, 14 Oct 2010 18:31:08 +0100 Subject: [PATCH] ENH: foamToEnsight : filter proc patches only if running parallel --- .../dataConversion/foamToEnsight/ensightMesh.C | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightMesh.C b/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightMesh.C index 62162289615..cff09a395d6 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightMesh.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightMesh.C @@ -70,12 +70,15 @@ void Foam::ensightMesh::correct() // Patches are output. Check that they're synced. mesh_.boundaryMesh().checkParallelSync(true); - allPatchNames_ = wordList::subList - ( - mesh_.boundaryMesh().names(), - mesh_.boundary().size() - - mesh_.globalData().processorPatches().size() - ); + allPatchNames_ = mesh_.boundaryMesh().names(); + if (Pstream::parRun()) + { + allPatchNames_.setSize + ( + mesh_.boundary().size() + - mesh_.globalData().processorPatches().size() + ); + } if (patches_) { -- GitLab