Skip to content

Commit ca4bfd8

Browse files
Fixing depth check error in Argo kernel
1 parent 277a984 commit ca4bfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualship.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def ArgoVerticalMovement(particle, fieldset, time):
453453
if particle.cycle_phase == 0:
454454
# Phase 0: Sinking with vertical_speed until depth is driftdepth
455455
particle_ddepth += fieldset.vertical_speed * particle.dt
456-
if particle.depth + particle_ddepth >= fieldset.driftdepth:
456+
if particle.depth + particle_ddepth <= fieldset.driftdepth:
457457
particle_ddepth = fieldset.driftdepth - particle.depth
458458
particle.cycle_phase = 1
459459

0 commit comments

Comments
 (0)