From caf7418aa25413927ead0205c47529c01b41c6fd Mon Sep 17 00:00:00 2001 From: Erik van Sebille Date: Mon, 10 Jul 2023 14:14:52 +0200 Subject: [PATCH] Using explicit Euler Forward in Recovery Kernel As calling functions is not possible anymore with new implementation --- tests/test_advection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_advection.py b/tests/test_advection.py index 35802b7e4..1020dc0b3 100644 --- a/tests/test_advection.py +++ b/tests/test_advection.py @@ -157,7 +157,9 @@ def DeleteParticle(particle, fieldset, time): def SubmergeParticle(particle, fieldset, time): particle.depth = 0 - AdvectionRK4(particle, fieldset, time) # perform a 2D advection because vertical flow will always push up in this case + (u1, v1) = fieldset.UV[particle] + particle.lon += u1 * particle.dt # noqa + particle.lat += v1 * particle.dt # noqa particle.time = time + particle.dt # to not trigger kernels again, otherwise infinite loop particle.set_state(StateCode.Success)