Fix indexing issue for output monitoring#3389
Conversation
dschwoerer
left a comment
There was a problem hiding this comment.
Does this break the output? I think there are somewhere some tricky details, especially with smaller / slower output monitors, that make things a bit non-intuitive ...
|
Why not change the check to |
I'm also a bit wary about touching this stuff because I recall how fiddly the details are, but we do have pretty good tests on calling multiple monitors with different frequencies ( |
|
The output, at least for non restarted simulations also seem to match, so might be good. @Steven-Roberts could you please merge Steven-Roberts#1 to fix the formatting? |
Output monitoring functions would get called twice in a row with
iter = 0(unlessdump_on_restart = false) and would never reach iterationNOUTwhich was used as a check for cleanup:BOUT-dev/src/solver/solver.cxx
Line 931 in c7020b4
This PR fixes solver iterations to be 1-indexed.