Skip to content

Commit 9e6e894

Browse files
fix: use remake_initialization_data to promote the initialization problem
1 parent 57d7da1 commit 9e6e894

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/systems/problem_utils.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,16 @@ function process_SciMLProblem(
896896
du0 = nothing
897897
end
898898

899+
if build_initializeprob
900+
t0 = t
901+
if is_time_dependent(sys) && t0 === nothing
902+
t0 = zero(floatT)
903+
end
904+
initialization_data = SciMLBase.remake_initialization_data(
905+
kwargs.initialization_data, kwargs, u0, t0, p, u0, p)
906+
kwargs = merge(kwargs,)
907+
end
908+
899909
f = constructor(sys, dvs, ps, u0; p = p,
900910
eval_expression = eval_expression,
901911
eval_module = eval_module,

0 commit comments

Comments
 (0)