Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 11, 2024
1 parent 2950f64 commit 3bbd8d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Iteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ Iteration &Iteration::close(bool _flush)
Iteration &Iteration::open()
{
Series s = retrieveSeries();
auto &it = get();
// figure out my iteration number
auto begin = s.indexOf(*this);
if (it.m_closed == internal::CloseStatus::ClosedInFrontend)
Expand All @@ -155,8 +154,9 @@ Iteration &Iteration::open()
// previously closed Iteration
if (&begin->second != this)
{
this->setData(begin->second.m_iterationData);
*this = begin->second;
}
auto &it = get();
// Ensure that files are accessed.
// If the close status was Closed, this will open it.
s.openIteration(begin->first, *this);
Expand Down

0 comments on commit 3bbd8d0

Please sign in to comment.