We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@ignore_derivatives
update_initializeprob!
1 parent 1de4cd5 commit 1dac3e7Copy full SHA for 1dac3e7
src/systems/problem_utils.jl
@@ -842,8 +842,8 @@ A function to be used as `update_initializeprob!` in `OverrideInitData`. Require
842
`is_update_oop = Val(true)` to be passed to `update_initializeprob!`.
843
"""
844
function update_initializeprob!(initprob, prob)
845
- p = get_scimlfn(prob).initialization_data.metadata.oop_reconstruct_u0_p.pgetter(
846
- prob, initprob)
+ pgetter = ChainRulesCore.@ignore_derivatives get_scimlfn(prob).initialization_data.metadata.oop_reconstruct_u0_p.pgetter
+ p = pgetter(prob, initprob)
847
return remake(initprob; p)
848
end
849
0 commit comments