Commit 179f2e81 authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: disable function objects in post-process mode

- prevents accidental overwrite of runtime conversions.
parent b6fd326d
......@@ -113,6 +113,14 @@ Foam::functionObjects::catalystFaMesh::catalystFaMesh
backends_(),
adaptor_()
{
if (postProcess)
{
// Disable for post-process mode.
// Emit as FatalError for the try/catch in the caller.
FatalError
<< type() << " disabled in post-process mode"
<< exit(FatalError);
}
read(dict);
}
......
......@@ -85,6 +85,14 @@ Foam::functionObjects::catalystCloud::catalystCloud
selectFields_(),
adaptor_()
{
if (postProcess)
{
// Disable for post-process mode.
// Emit as FatalError for the try/catch in the caller.
FatalError
<< type() << " disabled in post-process mode"
<< exit(FatalError);
}
read(dict);
}
......
......@@ -112,6 +112,14 @@ Foam::functionObjects::catalystFvMesh::catalystFvMesh
backends_(),
adaptor_()
{
if (postProcess)
{
// Disable for post-process mode.
// Emit as FatalError for the try/catch in the caller.
FatalError
<< type() << " disabled in post-process mode"
<< exit(FatalError);
}
read(dict);
}
......
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