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

Commit 79639bce authored by Mark Olesen's avatar Mark Olesen

ENH: clear catalyst inputs on functionObject::end

- forces release of memory for the associated backends

- log which channels are being emitted.
  The printChannels pipeline was redundant anyhow.
parent 16709019
......@@ -19,7 +19,6 @@ catalyst
scripts
(
// "<etc>/caseDicts/insitu/catalyst/printChannels.py"
"<etc>/caseDicts/insitu/catalyst/writeAll.py"
);
......
......@@ -336,7 +336,15 @@ bool Foam::functionObjects::catalystFunctionObject::execute()
if (outputs.size())
{
Log << type() << ": send data" << nl;
if (log)
{
Info<< type() << ": send data (";
for (const word& channelName : outputs.sortedToc())
{
Info<< ' ' << channelName;
}
Info<< " )" << nl;
}
adaptor_().process(dataq, outputs);
}
......@@ -373,6 +381,8 @@ bool Foam::functionObjects::catalystFunctionObject::end()
}
adaptor_.clear();
inputs_.clear();
return true;
}
......
......@@ -7,7 +7,6 @@ catalyst
scripts
(
"<system>/scripts/slice1.py"
// "<etc>/caseDicts/insitu/catalyst/printChannels.py"
// "<etc>/caseDicts/insitu/catalyst/writeAll.py"
);
......
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