applications/solvers/heatTransfer/chtMultiRegionFoam: Check there are fluid meshes present for the '-postProcess' option

This commit is contained in:
Henry Weller
2016-05-09 19:55:11 +01:00
parent a9b4e7975a
commit 64aac63b03

View File

@ -1,2 +1,9 @@
#include "createMeshes.H"
if (!fluidRegions.size())
{
FatalErrorIn(args.executable())
<< "No fluid meshes present" << exit(FatalError);
}
fvMesh& mesh = fluidRegions[0];