Skip to content

Commit

Permalink
Update callbacks.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Mar 20, 2018
1 parent fe6f495 commit c86fd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end
event_occurred = true
interp_index = callback.interp_points
elseif callback.interp_points!=0 # Use the interpolants for safety checking
for i in 2:length(Θs)-1
for i in 2:length(Θs)
if !(typeof(callback.idxs) <: Number)
tmp = integrator(integrator.tprev+dt*Θs[i])
callback.idxs == nothing ? _tmp = tmp : _tmp = @view tmp[callback.idxs]
Expand Down

0 comments on commit c86fd9c

Please sign in to comment.