Skip to content

Fix bugs for set_time function in subcycling#336

Merged
ecoon merged 1 commit intomasterfrom
phongle/fix_timesub
Mar 10, 2026
Merged

Fix bugs for set_time function in subcycling#336
ecoon merged 1 commit intomasterfrom
phongle/fix_timesub

Conversation

@levuvietphong
Copy link
Copy Markdown
Contributor

This PR fixes incorrect handling of set_time for the CURRENT and NEXT tags.

Without set_time, the model always assumed a start time of 0. When a simulation started at a nonzero time, this resulted in t_this < t_current and caused the model to stop.

The fix ensures set_time respects the configured start time, preventing invalid time during interpolation.

@ecoon ecoon merged commit fefcdd0 into master Mar 10, 2026
7 checks passed
@ecoon ecoon deleted the phongle/fix_timesub branch March 10, 2026 16:35
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