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 ...@@ -19,7 +19,6 @@ catalyst
scripts scripts
( (
// "<etc>/caseDicts/insitu/catalyst/printChannels.py"
"<etc>/caseDicts/insitu/catalyst/writeAll.py" "<etc>/caseDicts/insitu/catalyst/writeAll.py"
); );
......
...@@ -336,7 +336,15 @@ bool Foam::functionObjects::catalystFunctionObject::execute() ...@@ -336,7 +336,15 @@ bool Foam::functionObjects::catalystFunctionObject::execute()
if (outputs.size()) 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); adaptor_().process(dataq, outputs);
} }
...@@ -373,6 +381,8 @@ bool Foam::functionObjects::catalystFunctionObject::end() ...@@ -373,6 +381,8 @@ bool Foam::functionObjects::catalystFunctionObject::end()
} }
adaptor_.clear(); adaptor_.clear();
inputs_.clear();
return true; return true;
} }
......
...@@ -7,7 +7,6 @@ catalyst ...@@ -7,7 +7,6 @@ catalyst
scripts scripts
( (
"<system>/scripts/slice1.py" "<system>/scripts/slice1.py"
// "<etc>/caseDicts/insitu/catalyst/printChannels.py"
// "<etc>/caseDicts/insitu/catalyst/writeAll.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