mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +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