Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
b2bc1d65
Commit
b2bc1d65
authored
Apr 17, 2019
by
Andrew Heather
Browse files
ENH: Only store previous time name if it is not at the current head
parent
5f7b62c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/Time/TimeIO.C
View file @
b2bc1d65
...
...
@@ -655,7 +655,10 @@ bool Foam::Time::writeObject
// Does the writeTime trigger purging?
if
(
writeTime_
&&
purgeWrite_
)
{
previousWriteTimes_
.
push
(
timeName
());
if
(
previousWriteTimes_
.
top
()
!=
timeName
())
{
previousWriteTimes_
.
push
(
timeName
());
}
while
(
previousWriteTimes_
.
size
()
>
purgeWrite_
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment