Skip to content

Conversation

@AayushSabharwal
Copy link
Member

Close #3504

initials = DiffEqBase.promote_u0(initials, newu0, t0)
newp = repack(initials)
end
setp(sys, Initial.(unknowns(sys)))(newp, newu0)
Copy link
Member

Choose a reason for hiding this comment

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

Will this validate that the size is correct? It seems like that should get a contextualized error message.

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 think it'll throw a BroadcastError just because of how SII works but year, an error message is a good idea.

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 let tests run. If they pass, I'll push the error message and merge.

@AayushSabharwal AayushSabharwal merged commit 3d7fd3b into SciML:master Apr 3, 2025
23 of 24 checks passed
@AayushSabharwal AayushSabharwal deleted the as/remake-copy-u0 branch April 3, 2025 12:16
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.

remake for SDEProblem resets and ignores u0

2 participants