Skip to content

Conversation

@AayushSabharwal
Copy link
Member

@ChrisRackauckas ChrisRackauckas merged commit e2e6a7d into SciML:master Apr 3, 2025
137 of 147 checks passed
Comment on lines +92 to +94
reinit!(integ, [2.0, 3.0])
@test integ.ps[Initial(x)] 2.0
@test integ.ps[Initial(y)] 3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

@AayushSabharwal shouldn't this also test integ.u? That's what was raised in SciML/ModelingToolkit.jl#3451

Copy link
Member

Choose a reason for hiding this comment

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

It will be integ.u after DAE init is ran here: https://github.com/SciML/OrdinaryDiffEq.jl/pull/2658/files#diff-979c91992be010582f7db3acfd7bc376632fb3965e9f19ddddc0647986f3de4cR431 . So yeah it probably would be good to add a test that is correctly handled.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll PR soon

@AayushSabharwal AayushSabharwal deleted the as/reinit-update-initials branch April 3, 2025 14:52
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.

reinit! now ignores given state (2nd argument) for an MTK-derived ODEIntegrator.

3 participants