Skip to content

Commit 894405c

Browse files
Merge pull request #591 from AayushSabharwal/as/symbolic-save-idxs
feat: add support for symbolic `save_idxs`
2 parents 89e62d2 + 725b890 commit 894405c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Random = "1.6"
5252
RandomNumbers = "1.5.3"
5353
RecursiveArrayTools = "2, 3"
5454
Reexport = "0.2, 1.0"
55-
SciMLBase = "2.51"
55+
SciMLBase = "2.59.2"
5656
SciMLOperators = "0.2.9, 0.3"
5757
SparseArrays = "1.6"
5858
SparseDiffTools = "2"

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)