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];