Skip to content
Snippets Groups Projects
Commit f395aa43 authored by Mark Olesen's avatar Mark Olesen
Browse files

porousZone - abort in parallel if the cellZone cannot be found

- the previous check didn't catch bad cellZone names when running in
  parallel
parent 0693131a
Branches
Tags
No related merge requests found
......@@ -81,7 +81,10 @@ Foam::porousZone::porousZone
{
Info<< "Creating porous zone: " << name_ << endl;
if (cellZoneID_ == -1 && !Pstream::parRun())
bool foundZone = (cellZoneID_ != -1);
reduce(foundZone, orOp<bool>());
if (!foundZone && Pstream::master())
{
FatalErrorIn
(
......@@ -91,6 +94,7 @@ Foam::porousZone::porousZone
<< exit(FatalError);
}
// porosity
if (dict_.readIfPresent("porosity", porosity_))
{
......
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