Skip to content

Commit c40e19e

Browse files
add destats
1 parent 236a0fc commit c40e19e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/integrators/type.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ mutable struct
6464
qold::tTypeNoUnits
6565
q11::tTypeNoUnits
6666
history::H
67+
destats::DiffEqBase.DEStats
6768
integrator::IType # history integrator
6869
end
6970

src/solve.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,17 +352,18 @@ function DiffEqBase.__init(prob::AbstractSDDEProblem,# TODO DiffEqBasee.Abstract
352352
verbose, calck, force_dtmin,
353353
advance_to_tstop, stop_at_next_tstop)
354354

355+
destats = DiffEqBase.DEStats(0)
355356
if typeof(getalg(alg)) <: StochasticDiffEq.StochasticDiffEqCompositeAlgorithm
356357
# TODO: DISCONNECT!!!!
357358
sol = DiffEqBase.build_solution(prob, alg, sde_integrator.sol.t, sde_integrator.sol.u, W = W,
358-
destats = DiffEqBase.DEStats(0),
359+
destats = destats,
359360
calculate_error = false, alg_choice = alg_choice,
360361
interp = id, dense = dense, seed = _seed)
361362
# separate statistics of the integrator and the history
362363
else
363364
# TODO: DISCONNECT!!!!
364365
sol = DiffEqBase.build_solution(prob, alg, sde_integrator.sol.t, sde_integrator.sol.u, W = W,
365-
destats = DiffEqBase.DEStats(0),
366+
destats = destats,
366367
calculate_error = false,
367368
interp = id, dense = dense, seed = _seed)
368369
# separate statistics of the integrator and the history
@@ -412,7 +413,7 @@ function DiffEqBase.__init(prob::AbstractSDDEProblem,# TODO DiffEqBasee.Abstract
412413
just_hit_tstop, isout, event_last_time, vector_event_last_time, last_event_error, accept_step,
413414
last_stepfail, force_stepfail, dtchangeable, u_modified, saveiter, getalg(alg), sol,
414415
cache, callback_cache, tType(dt), W, P,
415-
opts, iter, success_iter, eigen_est, EEst, q, QT(qoldinit), q11, history, sde_integrator)
416+
opts, iter, success_iter, eigen_est, EEst, q, QT(qoldinit), q11, history, destats, sde_integrator)
416417

417418
if initialize_integrator
418419
StochasticDiffEq.initialize_callbacks!(integrator, initialize_save)

0 commit comments

Comments
 (0)