Skip to content

Commit aeaaf9c

Browse files
feat: add support for symbolic save_idxs
1 parent 89e62d2 commit aeaaf9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/solve.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ function DiffEqBase.__init(
230230
d_discontinuities_internal = OrdinaryDiffEq.initialize_d_discontinuities(tType, d_discontinuities, tspan)
231231

232232
### Algorithm-specific defaults ###
233+
save_idxs, saved_subsystem = SciMLBase.get_save_idxs_and_saved_subsystem(prob, save_idxs)
233234
# if save_idxs === nothing
234235
# ksEltype = Vector{rateType}
235236
# else
@@ -538,12 +539,12 @@ function DiffEqBase.__init(
538539
if alg isa Union{StochasticDiffEqCompositeAlgorithm,
539540
StochasticDiffEqRODECompositeAlgorithm}
540541
sol = DiffEqBase.build_solution(prob,alg,ts,timeseries,W=W,
541-
stats = stats,
542+
stats = stats, saved_subsystem = saved_subsystem,
542543
calculate_error = false, alg_choice=alg_choice,
543544
interp = id, dense = dense, seed = _seed)
544545
else
545546
sol = DiffEqBase.build_solution(prob,alg,ts,timeseries,W=W,
546-
stats = stats,
547+
stats = stats, saved_subsystem = saved_subsystem,
547548
calculate_error = false,
548549
interp = id, dense = dense, seed = _seed)
549550
end

0 commit comments

Comments
 (0)