ENH: chtMultiRegionFoam: Added support for single solid region post-processing
Patch contributed by Bruno Santos Resolves patch request https://bugs.openfoam.org/view.php?id=2684
This commit is contained in:
parent
8b4fabd0bf
commit
5b5c209785
@ -1,9 +1,9 @@
|
||||
#include "createMeshes.H"
|
||||
|
||||
if (!fluidRegions.size())
|
||||
if (!fluidRegions.size() && !solidRegions.size())
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
<< "No fluid meshes present" << exit(FatalError);
|
||||
<< "No region meshes present" << exit(FatalError);
|
||||
}
|
||||
|
||||
fvMesh& mesh = fluidRegions[0];
|
||||
fvMesh& mesh = fluidRegions.size() ? fluidRegions[0] : solidRegions[0];
|
||||
|
Loading…
Reference in New Issue
Block a user