Skip to content

Commit

Permalink
vertical_mixing: fix for depths below -255m
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelaghito committed Dec 13, 2021
1 parent 7930fe8 commit 7c49eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendrift/models/oceandrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def vertical_mixing(self, store_depths=False):
w = self.elements.terminal_velocity

# Diffusivity and its gradient at z
zi = np.round(z_index(-self.elements.z)).astype(np.uint8)
zi = np.round(z_index(-self.elements.z)).astype(np.uint16)
Kz = Kprofiles[zi, range(Kprofiles.shape[1])]
dKdz = gradK[zi, range(Kprofiles.shape[1])]

Expand Down

0 comments on commit 7c49eda

Please sign in to comment.