Skip to content
New issue

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

By clicking “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? Sign in to your account

feat: run trivial initialization in problem constructor #3404

Merged
merged 6 commits into from
Feb 27, 2025

Conversation

AayushSabharwal
Copy link
Member

@AayushSabharwal AayushSabharwal commented Feb 21, 2025

Close #3290, #3410

@@ -753,7 +753,7 @@ function DiffEqBase.ODEProblem{iip, specialize}(sys::AbstractODESystem, u0map =
kwargs1 = merge(kwargs1, (; tstops))
end

return ODEProblem{iip}(f, u0, tspan, p, pt; kwargs1..., kwargs...)
return remake(ODEProblem{iip}(f, u0, tspan, p, pt; kwargs1..., kwargs...))
Copy link
Member

Choose a reason for hiding this comment

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

this should at least be commented why it's done. It's a bit of an odd way to get there, but understand why

@ChrisRackauckas ChrisRackauckas merged commit 585301a into SciML:master Feb 27, 2025
37 of 45 checks passed
@AayushSabharwal AayushSabharwal deleted the as/run-trivial-init branch February 28, 2025 06:17
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.

Trivial initialization problem isn't solved when creating ODEProblem
2 participants