Skip to content

Commit b65623e

Browse files
version
1 parent 3a34bef commit b65623e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Setfield = "0.8, 1"
7878
Static = "0.7, 0.8"
7979
StaticArraysCore = "1.4"
8080
Tricks = "0.1.6"
81+
TruncatedStacktraces = "1"
8182
ZygoteRules = "0.2"
8283
julia = "1.6"
8384

src/callbacks.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ end
194194

195195
if integrator.event_last_time == counter &&
196196
minimum(ODE_DEFAULT_NORM(ArrayInterface.allowed_getindex(previous_condition,
197-
ivec), integrator.t)) <=
197+
ivec), integrator.t)) <=
198198
100ODE_DEFAULT_NORM(integrator.last_event_error, integrator.t)
199199

200200
# If there was a previous event, utilize the derivative at the start to
@@ -476,8 +476,8 @@ function find_callback_time(integrator, callback::VectorContinuousCallback, coun
476476
if ArrayInterface.allowed_getindex(event_idx, idx) != 0
477477
function zero_func(abst, p = nothing)
478478
ArrayInterface.allowed_getindex(get_condition(integrator,
479-
callback,
480-
abst), idx)
479+
callback,
480+
abst), idx)
481481
end
482482
if zero_func(top_t) == 0
483483
Θ = top_t

0 commit comments

Comments
 (0)