From 80a0b4a12407df9d6f16241a5b62c5b538dfcc12 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 61d94eb5c8..fdd22b7220 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];