Skip to content

Commit 1bd8a9a

Browse files
Update variable_rate.jl
1 parent a41a475 commit 1bd8a9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/variable_rate.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ const NUM_GAUSS_QUAD_NODES = 4
351351

352352
# Condition functor defined directly on the cache
353353
function (cache::VR_DirectEventCache)(u, t, integrator)
354+
if integrator.t < cache.current_time
355+
error("integrator.t < cache.current_time. $(integrator.t) < $(cache.current_time). This is not supported in the `VR_Direct` handling")
356+
end
357+
354358
if integrator.t != cache.current_time
355359
cache.prev_time = cache.current_time
356360
cache.prev_threshold = cache.current_threshold

0 commit comments

Comments
 (0)