File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,8 @@ function SciMLBase.remake_initialization_data(
232
232
end
233
233
if ! (eltype (u0) <: Pair ) && ! (eltype (p) <: Pair )
234
234
oldinitdata = odefn. initialization_data
235
+ oldinitdata === nothing && return nothing
236
+
235
237
oldinitprob = oldinitdata. initializeprob
236
238
oldinitprob === nothing && return nothing
237
239
if ! SciMLBase. has_sys (oldinitprob. f) || ! (oldinitprob. f. sys isa NonlinearSystem)
@@ -257,7 +259,7 @@ function SciMLBase.remake_initialization_data(
257
259
if p != = missing
258
260
for sym in parameter_symbols (oldinitprob)
259
261
push! (pidxs, parameter_index (oldinitprob, sym))
260
- if isequal (sym, get_iv (sys))
262
+ if is_time_dependent (sys) && isequal (sym, get_iv (sys))
261
263
push! (pvals, t0)
262
264
else
263
265
push! (pvals, getp (sys, sym)(p))
@@ -341,7 +343,7 @@ function SciMLBase.remake_initialization_data(
341
343
pmap[p] = getp (sys, p)(newp)
342
344
end
343
345
end
344
- if t0 === nothing
346
+ if t0 === nothing && is_time_dependent (sys)
345
347
t0 = 0.0
346
348
end
347
349
filter_missing_values! (u0map)
You can’t perform that action at this time.
0 commit comments