Skip to content

Fix indexing issue for output monitoring#3389

Open
Steven-Roberts wants to merge 1 commit into
boutproject:nextfrom
Steven-Roberts:monitor-bug-fix
Open

Fix indexing issue for output monitoring#3389
Steven-Roberts wants to merge 1 commit into
boutproject:nextfrom
Steven-Roberts:monitor-bug-fix

Conversation

@Steven-Roberts

Copy link
Copy Markdown
Contributor

Output monitoring functions would get called twice in a row with iter = 0 (unless dump_on_restart = false) and would never reach iteration NOUT which was used as a check for cleanup:

if (iter == NOUT || abort) {

This PR fixes solver iterations to be 1-indexed.

@dschwoerer dschwoerer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ...

@dschwoerer

Copy link
Copy Markdown
Contributor

Why not change the check to NOUT - 1 instead of changing 19 files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants