From 8d40d33d4a17e5ee7cd5005b464cb8005fe31ade Mon Sep 17 00:00:00 2001 From: akm157 Date: Thu, 25 Jun 2020 16:16:17 +1000 Subject: [PATCH] Fix halo bug on tidal forcing --- src/mom5/ocean_core/ocean_barotropic.F90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mom5/ocean_core/ocean_barotropic.F90 b/src/mom5/ocean_core/ocean_barotropic.F90 index 97564b40ee..bde1f2b604 100644 --- a/src/mom5/ocean_core/ocean_barotropic.F90 +++ b/src/mom5/ocean_core/ocean_barotropic.F90 @@ -6467,9 +6467,9 @@ subroutine get_tidal_forcing(Time, dayr) eta_eq_tidal(:,:) = ideal_amp(:,:)*cosomegat_M2 endif - eta_eq_tidal(:,:) = eta_eq_tidal(:,:)*Grd%tmask(:,:,1) + eta_eq_tidal(:,:) = eta_eq_tidal(:,:)*tmask_bt(:,:) - call diagnose_2d(Time, Grd, id_eta_eq_tidal, eta_eq_tidal(:,:)) + call diagnose_2d(Time, Grd, id_eta_eq_tidal, eta_eq_tidal(isd:ied,jsd:jed)) end subroutine get_tidal_forcing