mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
applications/solvers/heatTransfer/chtMultiRegionFoam: Check there are fluid meshes present for the '-postProcess' option
This commit is contained in:
@ -1,2 +1,9 @@
|
|||||||
#include "createMeshes.H"
|
#include "createMeshes.H"
|
||||||
|
|
||||||
|
if (!fluidRegions.size())
|
||||||
|
{
|
||||||
|
FatalErrorIn(args.executable())
|
||||||
|
<< "No fluid meshes present" << exit(FatalError);
|
||||||
|
}
|
||||||
|
|
||||||
fvMesh& mesh = fluidRegions[0];
|
fvMesh& mesh = fluidRegions[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user