Skip to content
Snippets Groups Projects
Commit 5b5c2097 authored by Henry Weller's avatar Henry Weller Committed by Andrew Heather
Browse files

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
parent 8b4fabd0
No related merge requests found
#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];
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment