From 55c175e874f8d7dda2b209b119ec0200cd830a15 Mon Sep 17 00:00:00 2001 From: Stefano Piani Date: Thu, 19 Mar 2026 12:29:51 +0100 Subject: [PATCH] Fixing the value of the last index of ob_indices --- src/mitgcm_inputs/ob_indices/ob_indices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mitgcm_inputs/ob_indices/ob_indices.py b/src/mitgcm_inputs/ob_indices/ob_indices.py index 0922fb3..f97860a 100644 --- a/src/mitgcm_inputs/ob_indices/ob_indices.py +++ b/src/mitgcm_inputs/ob_indices/ob_indices.py @@ -121,7 +121,7 @@ def generate_ob_indices( open_on_boundary = 1 else: # Here we add a +1 because we need to skip the depth index - open_on_boundary = mask.shape[domain_index + 1] + open_on_boundary = mask.shape[sponge_index + 1] # This is the value that we use to report that a cell is closed on the # boundary closed_cell = 0