Skip to content
Snippets Groups Projects
Commit b2bc1d65 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Only store previous time name if it is not at the current head

parent 5f7b62c5
No related branches found
No related tags found
No related merge requests found
......@@ -654,8 +654,11 @@ bool Foam::Time::writeObject
{
// Does the writeTime trigger purging?
if (writeTime_ && purgeWrite_)
{
if (previousWriteTimes_.top() != timeName())
{
previousWriteTimes_.push(timeName());
}
while (previousWriteTimes_.size() > purgeWrite_)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment