Skip to content

Commit 16ae1ec

Browse files
committed
zi no longer defined, need to reference vgrid
1 parent b4da69c commit 16ae1ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regional_mom6/regional_mom6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ def _make_vgrid(self, thicknesses=None):
970970

971971
if len(self.vgrid.zi) > 2 and self.minimum_depth < self.vgrid.zi[2]:
972972
print(
973-
f"Warning: Minimum depth of {self.minimum_depth}m is less than the depth of the third interface ({zi[2]}m)!\n"
973+
f"Warning: Minimum depth of {self.minimum_depth}m is less than the depth of the third interface ({self.vgrid.zi[2]}m)!\n"
974974
+ "This means that some areas may only have one or two layers between the surface and sea floor. \n"
975975
+ "For increased stability, consider increasing the minimum depth, or adjusting the vertical coordinate to add more layers near the surface."
976976
)

0 commit comments

Comments
 (0)