Skip to content

Commit

Permalink
remove def checkerror
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 16, 2018
1 parent ac6c3b2 commit e991a8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/integrators/integrator_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ end
last_step_failed(integrator::ODEIntegrator) =
integrator.last_stepfail && !integrator.opts.adaptive

@def ode_exit_conditions begin
if check_error!(integrator) != :Success
return integrator.sol
end
end

function modify_dt_for_tstops!(integrator)
tstops = integrator.opts.tstops
if !isempty(tstops)
Expand Down
4 changes: 3 additions & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ function DiffEqBase.solve!(integrator::ODEIntegrator)
@inbounds while !isempty(integrator.opts.tstops)
while integrator.tdir*integrator.t < integrator.tdir*top(integrator.opts.tstops)
loopheader!(integrator)
@ode_exit_conditions
if check_error!(integrator) != :Success
return integrator.sol
end
perform_step!(integrator,integrator.cache)
loopfooter!(integrator)
if isempty(integrator.opts.tstops)
Expand Down

0 comments on commit e991a8f

Please sign in to comment.