Skip to content

Commit

Permalink
Making the test_mixing unit test run for a much shorter period to ens…
Browse files Browse the repository at this point in the history
…ure particles aren't kicked beyond the depth field!
  • Loading branch information
michaeldenes committed Dec 4, 2024
1 parent feedda0 commit b5c590c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,11 @@ def test_mixing():
pset = make_standard_particleset(fieldset, settings)
pset_mixing = make_standard_particleset(fieldset, settings)

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

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

0 comments on commit b5c590c

Please sign in to comment.