Skip to content

Fix max_dt logic in DP54#16

Merged
tuckermcclure merged 4 commits into
mainfrom
tucker/dp54-max-dt
Mar 11, 2026
Merged

Fix max_dt logic in DP54#16
tuckermcclure merged 4 commits into
mainfrom
tucker/dp54-max-dt

Conversation

@tuckermcclure
Copy link
Copy Markdown
Member

I noticed that the max_dt logic wasn't actually hooked up and fixed that. I also switched one thing from findfirst to searchsortedlast for the sake of efficiency and type stability. The unit tests cover it clearly.

@tuckermcclure tuckermcclure requested a review from CarlOlsson March 5, 2026 01:09
In the baseline, if a step failed, then t_next_suggested would be stale and too large (bigger than max_dt). With this change, it gets updated at the end of every successful step so that it can't be stale or larger than max_dt.
@tuckermcclure tuckermcclure merged commit ff684e4 into main Mar 11, 2026
3 checks passed
@tuckermcclure tuckermcclure deleted the tucker/dp54-max-dt branch March 11, 2026 13:44
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