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
......@@ -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_)
{
......
Supports Markdown
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