From 33b579c3c12d5df7ec5d6c6df924769eb27617fc Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 4 Sep 2017 17:16:43 +0100 Subject: [PATCH] chtMultiRegionFoam: Added support for single solid region post-processing Patch contributed by Bruno Santos Resolves patch request https://bugs.openfoam.org/view.php?id=2684 --- .../chtMultiRegionFoam/createMeshesPostProcess.H | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H index fdd22b722..d6d60a119 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H @@ -1,9 +1,9 @@ #include "createMeshes.H" -if (!fluidRegions.size()) +if (!fluidRegions.size() && !solidRegions.size()) { FatalErrorIn(args.executable()) - << "No fluid meshes present" << exit(FatalError); + << "No region meshes present" << exit(FatalError); } -fvMesh& mesh = fluidRegions[0]; +fvMesh& mesh = fluidRegions.size() ? fluidRegions[0] : solidRegions[0];