There was an error while loading. Please reload this page.
2 parents cd89af5 + d678593 commit 8101504Copy full SHA for 8101504
1 file changed
opendrift/models/oceandrift.py
@@ -412,6 +412,7 @@ def vertical_mixing(self, store_depths=False):
412
self.timer_start('main loop:updating elements:vertical mixing')
413
414
dt_mix = self.get_config('vertical_mixing:timestep')
415
+ dt_mix = dt_mix * np.sign(self.time_step.total_seconds()) # negative for backward simulations
416
417
# minimum height/maximum depth for each particle accouting also for
418
# the sea surface height
0 commit comments