From b5c590c35fa7dcd7a4239a73ef40f7c671dc7656 Mon Sep 17 00:00:00 2001 From: michaeldenes Date: Wed, 4 Dec 2024 17:50:21 +0100 Subject: [PATCH] Making the test_mixing unit test run for a much shorter period to ensure particles aren't kicked beyond the depth field! --- tests/test_kernels.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_kernels.py b/tests/test_kernels.py index bdbe04b..3fad55d 100644 --- a/tests/test_kernels.py +++ b/tests/test_kernels.py @@ -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'])