Commit 05d0a4f1 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: add warning if function object subRegion is not found

parent 4bd1bd75
......@@ -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_);
......
Markdown is supported
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