Skip to content

snes: Initialise dt#3408

Merged
bendudson merged 1 commit into
nextfrom
fix-snes-dt
Jun 26, 2026
Merged

snes: Initialise dt#3408
bendudson merged 1 commit into
nextfrom
fix-snes-dt

Conversation

@bendudson

Copy link
Copy Markdown
Contributor

Fixes a bug due to uninitialised dt. The residuals calculation calls the RHS function with time simtime + dt, so occasionally the time would be large values (e.g. 1e200). This would crash hermes-3 if upstream_density_feedback was being used, because the integration of the error would blow up.

Fixes a bug due to uninitialised dt. The residuals calculation calls
the RHS function with time `simtime + dt`, so occasionally the time
would be large values (e.g. 1e200). This would crash `hermes-3` if
`upstream_density_feedback` was being used, because the integration of
the error would blow up.
@bendudson bendudson merged commit 55693c6 into next Jun 26, 2026
23 checks passed
@bendudson bendudson deleted the fix-snes-dt branch June 26, 2026 02:14
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.

1 participant