Skip to content

Commit aec639e

Browse files
Merge pull request #40 from SciML/composite
allow error check skipping
2 parents 2fdc588 + 9eff828 commit aec639e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/integrators/type.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ mutable struct SDDEIntegrator{algType,IIP,uType,uEltype,tType,P,eigenType,tTypeN
4747
T::tType
4848
tdir::Int
4949
just_hit_tstop::Bool
50+
do_error_check::Bool
5051
isout::Bool
5152
event_last_time::Int
5253
vector_event_last_time::Int

src/solve.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ function DiffEqBase.__init(prob::AbstractSDDEProblem,# TODO DiffEqBasee.Abstract
391391
eigen_est = one(uBottomEltypeNoUnits) / oneunit(tType) # rate/state = (state/time)/state = 1/t units
392392
EEst = tTypeNoUnits(1)
393393
just_hit_tstop = false
394+
do_error_check = true
394395
isout = false
395396
accept_step = false
396397
force_stepfail = false
@@ -413,7 +414,8 @@ function DiffEqBase.__init(prob::AbstractSDDEProblem,# TODO DiffEqBasee.Abstract
413414
g_with_history, c, noise, uprev, tprev,
414415
order_discontinuity_t0, tracked_discontinuities,
415416
t, u, p, tType(dt), tType(dt), tType(dt), dtcache, tspan[2], tdir,
416-
just_hit_tstop, isout, event_last_time, vector_event_last_time, last_event_error, accept_step,
417+
just_hit_tstop, do_error_check,
418+
isout, event_last_time, vector_event_last_time, last_event_error, accept_step,
417419
last_stepfail, force_stepfail, dtchangeable, u_modified, saveiter, getalg(alg), sol,
418420
cache, callback_cache, tType(dt), W, P,
419421
opts, iter, success_iter, eigen_est, EEst, q, QT(qoldinit), q11, history, destats, sde_integrator)

0 commit comments

Comments
 (0)