OpenFOAM: v1912 released! - For more information see https://www.openfoam.com/releases/openfoam-v1912

Commit fc136d27 authored by Mark Olesen's avatar Mark Olesen

ENH: disable function objects in post-process mode

- prevents accidental overwrite of runtime conversions.
parent 14eaf2dd
......@@ -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);
}
......
......@@ -71,4 +71,4 @@ def DoCoProcessing(datadescription):
coprocessor.WriteImages(datadescription, rescale_lookuptable=False)
# Live Visualization, if enabled.
coprocessor.DoLiveVisualization(datadescription, "localhost", 4444)
coprocessor.DoLiveVisualization(datadescription, "localhost", 22222)
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