Skip to content

Fix ordinarydiffeq 2719 new - Use PreallocationTools.DiffCache for caching in SplitODEProblem #1106

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

Merged
merged 3 commits into from
Aug 15, 2025

Conversation

thomvet
Copy link
Contributor

@thomvet thomvet commented Aug 15, 2025

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

Cleaner version of #1097
Addresses SciML/OrdinaryDiffEq.jl#2719
For test to pass, this still needs: SciML/DiffEqBase.jl#1188

@thomvet thomvet changed the title Fix ordinarydiffeq 2719 new Fix ordinarydiffeq 2719 new - Use PreallocationTools.DiffCache for caching in SplitODEProblem Aug 15, 2025
@ChrisRackauckas ChrisRackauckas merged commit 2e9256a into SciML:master Aug 15, 2025
103 of 126 checks passed
@thomvet thomvet deleted the fix-ordinarydiffeq-2719-new branch August 15, 2025 12:13
@@ -474,7 +474,7 @@ end
function SplitODEProblem{iip}(f::SplitFunction, u0, tspan, p = NullParameters();
kwargs...) where {iip}
if f._func_cache === nothing && iip
_func_cache = similar(u0)
_func_cache = DiffCache(u0)

Choose a reason for hiding this comment

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

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.

3 participants