Skip to content

fix: update initials with non-symbolic u0 in remake #3530

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Merged
merged 7 commits into from
Apr 3, 2025

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
No Sign up for free to join this conversation on GitHub. Already have an account? No 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