applications/solvers/heatTransfer/chtMultiRegionFoam: Check there are fluid meshes present for the '-postProcess' option
This commit is contained in:
parent
a9b4e7975a
commit
64aac63b03
1 changed files with 7 additions and 0 deletions
|
|
@ -1,2 +1,9 @@
|
|||
#include "createMeshes.H"
|
||||
|
||||
if (!fluidRegions.size())
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
<< "No fluid meshes present" << exit(FatalError);
|
||||
}
|
||||
|
||||
fvMesh& mesh = fluidRegions[0];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue