Skip to content

Commit 51b1967

Browse files
Run test_particleset_interpolate_outside_domainedge with 2 day execution time
With the fence posting bugfix in place, the particleset execute call updates the position once; previously, this happened twice (this was the bug). This test failed because the particle didn't go out of bounds with a single position update. Semantically, setting the runtime to 2 days, achieved what was intended here (to get the particle out of bounds)
1 parent fc11251 commit 51b1967

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_particleset_execute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def SampleU(particles, fieldset): # pragma: no cover
203203
pset = ParticleSet(fieldset, lon=fieldset.U.grid.lon[-1], lat=fieldset.U.grid.lat[-1] + dlat)
204204

205205
with pytest.raises(FieldOutOfBoundError):
206-
pset.execute(SampleU, runtime=np.timedelta64(1, "D"), dt=np.timedelta64(1, "D"))
206+
pset.execute(SampleU, runtime=np.timedelta64(2, "D"), dt=np.timedelta64(1, "D"))
207207

208208

209209
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)