Skip to content
Snippets Groups Projects
Commit 05d0a4f1 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: add warning if function object subRegion is not found

parent 4bd1bd75
Branches
Tags
No related merge requests found
......@@ -57,6 +57,13 @@ Foam::functionObjects::regionFunctionObject::obr() const
obrPtr_ =
storedObjects().cfindObject<objectRegistry>(subRegistryName_);
}
if (!obrPtr_)
{
WarningInFunction
<< "Could not locate subRegion \""
<< subRegistryName_ << '"' << nl;
}
}
return (obrPtr_ ? *obrPtr_ : obr_);
......
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