From 3f2535bc42b2dfef2166d76c41303c2c863a7524 Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:51:22 +0200 Subject: [PATCH] Bugfix #1722 --- parcels/particleset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parcels/particleset.py b/parcels/particleset.py index 6e0bd3d11..a7b1430f1 100644 --- a/parcels/particleset.py +++ b/parcels/particleset.py @@ -1060,7 +1060,7 @@ def execute( next_output = starttime + dt else: next_output = np.inf * np.sign(dt) - next_callback = starttime * np.sign(dt) + next_callback = starttime + callbackdt * np.sign(dt) tol = 1e-12 time = starttime