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: support initialize_dae! for SDEIntegrator #594

Merged
merged 10 commits into from
Dec 11, 2024

Conversation

AayushSabharwal
Copy link
Member

I think the best way to do this is to get MTK to generate initialization systems and make sure this runs them, then merge

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@AayushSabharwal
Copy link
Member Author

Requires SciML/SciMLBase.jl#880

@AayushSabharwal AayushSabharwal changed the title [WIP] feat: support initialize_dae! for SDEIntegrator feat: support initialize_dae! for SDEIntegrator Dec 4, 2024
@@ -9,6 +9,9 @@ SciMLBase.forwarddiffs_model(alg::Union{StochasticDiffEqNewtonAlgorithm,
StochasticDiffEqNewtonAdaptiveAlgorithm,StochasticDiffEqJumpNewtonAdaptiveAlgorithm,
StochasticDiffEqJumpNewtonDiffusionAdaptiveAlgorithm}) = OrdinaryDiffEq.alg_autodiff(alg)

# Required for initialization, because ODECore._initialize_dae! calls it during
# OverrideInit
OrdinaryDiffEqCore.has_autodiff(::Union{StochasticDiffEqAlgorithm,StochasticDiffEqRODEAlgorithm,StochasticDiffEqJumpAlgorithm}) = false
Copy link
Member

Choose a reason for hiding this comment

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

This isn't true though, some of the implicit methods have the same autodiff args as the ode solver

@ChrisRackauckas ChrisRackauckas merged commit 71f24ae into SciML:master Dec 11, 2024
35 of 37 checks passed
@AayushSabharwal AayushSabharwal deleted the as/override-init branch December 11, 2024 11:53
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.

2 participants