Skip to content

allow skipping error checks #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/integrators/type.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ mutable struct DDEIntegrator{algType,IIP,uType,tType,P,eigenType,tTypeNoUnits,td
force_stepfail::Bool
last_stepfail::Bool
just_hit_tstop::Bool
do_error_check::Bool
event_last_time::Int
vector_event_last_time::Int
last_event_error::EventErrorType
Expand All @@ -97,7 +98,8 @@ mutable struct DDEIntegrator{algType,IIP,uType,tType,P,eigenType,tTypeNoUnits,td
alg,dtcache,dtchangeable,dtpropose,tdir,eigen_est,EEst,qold,
q11,erracc,dtacc,success_iter,iter,saveiter,saveiter_dense,
cache,callback_cache,kshortsize,force_stepfail,last_stepfail,
just_hit_tstop,event_last_time,vector_event_last_time,last_event_error,
just_hit_tstop,do_error_check,event_last_time,
vector_event_last_time,last_event_error,
accept_step,isout,reeval_fsal,u_modified,opts,destats,
history,integrator) where
{algType,IIP,uType,tType,P,eigenType,tTypeNoUnits,tdirType,ksEltype,SolType,F,
Expand All @@ -113,7 +115,8 @@ mutable struct DDEIntegrator{algType,IIP,uType,tType,P,eigenType,tTypeNoUnits,td
d_discontinuities_propagated,alg,dtcache,dtchangeable,dtpropose,tdir,
eigen_est,EEst,qold,q11,erracc,dtacc,success_iter,iter,saveiter,saveiter_dense,
cache,callback_cache,kshortsize,force_stepfail,last_stepfail,just_hit_tstop,
event_last_time,vector_event_last_time,last_event_error,accept_step,isout,
do_error_check,event_last_time,vector_event_last_time,
last_event_error,accept_step,isout,
reeval_fsal,u_modified,opts,destats,history,integrator)
end
end
Expand Down
3 changes: 2 additions & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ function DiffEqBase.__init(prob::DiffEqBase.AbstractDDEProblem,
u_modified = false
EEst = QT(1)
just_hit_tstop = false
do_error_check = true
isout = false
accept_step = false
force_stepfail = false
Expand Down Expand Up @@ -302,7 +303,7 @@ function DiffEqBase.__init(prob::DiffEqBase.AbstractDDEProblem,
erracc, dtacc, success_iter,
iter, length(ts), length(ts), cache, callback_cache,
kshortsize, force_stepfail, last_stepfail,
just_hit_tstop, event_last_time, vector_event_last_time,
just_hit_tstop, do_error_check, event_last_time, vector_event_last_time,
last_event_error, accept_step,
isout, reeval_fsal,
u_modified, opts, destats, history, ode_integrator)
Expand Down