Skip to content

Commit 1dac3e7

Browse files
fix: use @ignore_derivatives inside update_initializeprob!
1 parent 1de4cd5 commit 1dac3e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/problem_utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,8 @@ A function to be used as `update_initializeprob!` in `OverrideInitData`. Require
842842
`is_update_oop = Val(true)` to be passed to `update_initializeprob!`.
843843
"""
844844
function update_initializeprob!(initprob, prob)
845-
p = get_scimlfn(prob).initialization_data.metadata.oop_reconstruct_u0_p.pgetter(
846-
prob, initprob)
845+
pgetter = ChainRulesCore.@ignore_derivatives get_scimlfn(prob).initialization_data.metadata.oop_reconstruct_u0_p.pgetter
846+
p = pgetter(prob, initprob)
847847
return remake(initprob; p)
848848
end
849849

0 commit comments

Comments
 (0)