Skip to content

Fix bugs for set_time function in subcycling#336

Open
levuvietphong wants to merge 1 commit intomasterfrom
phongle/fix_timesub
Open

Fix bugs for set_time function in subcycling#336
levuvietphong wants to merge 1 commit intomasterfrom
phongle/fix_timesub

Conversation

@levuvietphong
Copy link
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.

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