Skip to content

Commit de2cabf

Browse files
feat: add save_discretes to DEOptions
1 parent c09a82e commit de2cabf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/OrdinaryDiffEqCore/src/integrators/type.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ mutable struct DEOptions{absType, relType, QT, tType, Controller, F1, F2, F3, F4
3737
save_on::Bool
3838
save_start::Bool
3939
save_end::Bool
40+
save_discretes::Bool
4041
save_end_user::F3
4142
callback::F4
4243
isoutofdomain::F5

lib/OrdinaryDiffEqCore/src/solve.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function SciMLBase.__init(
2121
save_idxs = nothing,
2222
save_everystep = isempty(saveat),
2323
save_on = true,
24+
save_discretes = true,
2425
save_start = save_everystep || isempty(saveat) ||
2526
saveat isa Number || prob.tspan[1] in saveat,
2627
save_end = nothing,
@@ -468,7 +469,7 @@ function SciMLBase.__init(
468469
timeseries_errors,
469470
dense_errors, dense,
470471
save_on, save_start,
471-
save_end, save_end_user,
472+
save_end, save_discretes, save_end_user,
472473
callbacks_internal,
473474
isoutofdomain,
474475
unstable_check,

0 commit comments

Comments
 (0)