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
88cf93c4
Commit
88cf93c4
authored
Apr 24, 2019
by
Mark OLESEN
Committed by
Andrew Heather
Apr 24, 2019
Browse files
BUG: missing guard for empty list (see
b2bc1d65
)
parent
391afe78
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/Time/TimeIO.C
View file @
88cf93c4
...
...
@@ -655,7 +655,11 @@ bool Foam::Time::writeObject
// Does the writeTime trigger purging?
if
(
writeTime_
&&
purgeWrite_
)
{
if
(
previousWriteTimes_
.
top
()
!=
timeName
())
if
(
previousWriteTimes_
.
empty
()
||
previousWriteTimes_
.
top
()
!=
timeName
()
)
{
previousWriteTimes_
.
push
(
timeName
());
}
...
...
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