Skip to content

Commit 1e4e374

Browse files
Also test dt that is not a divisor of runtime
1 parent fc71177 commit 1e4e374

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_particleset_execute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ def SampleU(particles, fieldset): # pragma: no cover
163163

164164

165165
@pytest.mark.parametrize("kernel", [AdvectionEE, AdvectionRK2, AdvectionRK4, AdvectionRK45])
166-
def test_particleset_run_RK_to_endtime_fwd_bwd(fieldset, kernel):
166+
@pytest.mark.parametrize("dt", [np.timedelta64(10, "D"), np.timedelta64(1, "D")])
167+
def test_particleset_run_RK_to_endtime_fwd_bwd(fieldset, kernel, dt):
167168
"""Test that RK kernels can be run to the endtime of a fieldset (and not throw OutsideTimeInterval)"""
168169
starttime = fieldset.time_interval.left
169170
endtime = fieldset.time_interval.right
170-
dt = np.timedelta64(1, "D")
171171

172172
# Setting zero velocities to avoid OutofBoundsErrors
173173
fieldset.U.data[:] = 0.0

0 commit comments

Comments
 (0)