From 64aac63b03263d8d4c37964c85d9db28d21ced1f Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 9 May 2016 19:55:11 +0100 Subject: [PATCH] applications/solvers/heatTransfer/chtMultiRegionFoam: Check there are fluid meshes present for the '-postProcess' option --- .../chtMultiRegionFoam/createMeshesPostProcess.H | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H index 61d94eb5c..fdd22b722 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H @@ -1,2 +1,9 @@ #include "createMeshes.H" + +if (!fluidRegions.size()) +{ + FatalErrorIn(args.executable()) + << "No fluid meshes present" << exit(FatalError); +} + fvMesh& mesh = fluidRegions[0];