Skip to content

Commit b5c590c

Browse files
committed
Making the test_mixing unit test run for a much shorter period to ensure particles aren't kicked beyond the depth field!
1 parent feedda0 commit b5c590c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_kernels.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,11 @@ def test_mixing():
225225
pset = make_standard_particleset(fieldset, settings)
226226
pset_mixing = make_standard_particleset(fieldset, settings)
227227

228-
# Because vertical mixing can vertically push the particle large distances, let's set the simulation time to 1 hour
229-
settings['simulation']['runtime'] = timedelta(hours=1)
228+
# Because vertical mixing can vertically push the particle large distances,
229+
# let's set the simulation time to 20 mins, and outputdt and dt to 10 mins
230+
settings['simulation']['runtime'] = timedelta(minutes=20)
231+
settings['simulation']['outputdt'] = timedelta(minutes=10)
232+
settings['simulation']['dt'] = timedelta(minutes=10)
230233

231234
pset.execute(kernels, runtime=settings['simulation']['runtime'], dt=settings['simulation']['dt'])
232235
pset_mixing.execute(kernels_mixing, runtime=settings['simulation']['runtime'], dt=settings['simulation']['dt'])

0 commit comments

Comments
 (0)