Skip to content

Commit 4c215b4

Browse files
fixup! refactor: use initialization_data in SciMLFunction constructors
1 parent 2beb33a commit 4c215b4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,7 @@ function SciMLBase.remake_initialization_data(sys::ODESystem, odefn, u0, t0, p,
329329
filter_missing_values!(pmap)
330330
f, _ = process_SciMLProblem(EmptySciMLFunction, sys, u0map, pmap; guesses, t = t0)
331331
kws = f.kwargs
332-
initprob = get(kws, :initializeprob, nothing)
333-
if initprob === nothing
334-
return nothing
335-
end
336-
return SciMLBase.OverrideInitData(initprob, get(kws, :update_initializeprob!, nothing),
337-
get(kws, :initializeprobmap, nothing),
338-
get(kws, :initializeprobpmap, nothing))
332+
return get(kws, :initialization_data, nothing)
339333
end
340334

341335
"""

0 commit comments

Comments
 (0)