Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchor committed Dec 15, 2024
1 parent 6d0202b commit 4fee2b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_simulations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,14 @@ function run_basic_simulation_tests(arch)
simulation.callbacks[:tester] = Callback(capture_call_time, schedule, parameters=called_at)
run!(simulation)

@show called_at
@test all(called_at .≈ 0.0:schedule.interval:simulation.stop_time)


# Test that minimum_relative_step is running correctly
final_time = 1.0 + 1e-11
model.clock.time = 0
model.clock.iteration = 0
simulation = Simulation(model, Δt=1, stop_time=final_time, minimum_relative_step=1e-10)
run!(simulation)

Expand Down

0 comments on commit 4fee2b6

Please sign in to comment.