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 34811e43cd
commit 80a0b4a124

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