ENH: runTimePostProcessing - added option to clear/remove objects after use

This commit is contained in:
Andrew Heather
2016-12-15 15:45:02 +00:00
parent 83dab87568
commit 4ff1c7dca4
18 changed files with 370 additions and 75 deletions

View File

@ -217,6 +217,24 @@ bool Foam::functionObjects::runTimePostProcessing::write()
}
}
// Clean up
forAll(text_, i)
{
text_[i].clear();
}
forAll(points_, i)
{
points_[i].clear();
}
forAll(lines_, i)
{
lines_[i].clear();
}
forAll(surfaces_, i)
{
surfaces_[i].clear();
}
// Reset any floating point trapping
sigFpe::set(false);