From 085759edaceaf9d07ab426ea7334b18f9e5d8a07 Mon Sep 17 00:00:00 2001 From: "brandon.reichl" Date: Thu, 12 Dec 2024 15:16:06 -0500 Subject: [PATCH] Fixing Langmuir number and Stokes drift grid index issue. --- src/core/MOM.F90 | 4 ++-- src/user/MOM_wave_interface.F90 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/MOM.F90 b/src/core/MOM.F90 index d37f265030..a0f226e890 100644 --- a/src/core/MOM.F90 +++ b/src/core/MOM.F90 @@ -773,14 +773,14 @@ subroutine step_MOM(forces_in, fluxes_in, sfc_state, Time_start, time_int_in, CS ! Update wave information, which is presently kept static over each call to step_mom call enable_averages(time_interval, Time_start + real_to_time(US%T_to_s*time_interval), CS%diag) call find_ustar(forces, CS%tv, U_star, G, GV, US, halo=1) - call thickness_to_dz(h, CS%tv, dz, G, GV, US, halo_size=1) + call thickness_to_dz(h, CS%tv, dz, G, GV, US, halo_size=2) call Update_Stokes_Drift(G, GV, US, Waves, dz, U_star, time_interval, do_dyn) call disable_averaging(CS%diag) endif else ! not do_dyn. if (CS%UseWaves) then ! Diagnostics are not enabled in this call. call find_ustar(fluxes, CS%tv, U_star, G, GV, US, halo=1) - call thickness_to_dz(h, CS%tv, dz, G, GV, US, halo_size=1) + call thickness_to_dz(h, CS%tv, dz, G, GV, US, halo_size=2) call Update_Stokes_Drift(G, GV, US, Waves, dz, U_star, time_interval, do_dyn) endif endif diff --git a/src/user/MOM_wave_interface.F90 b/src/user/MOM_wave_interface.F90 index bcd66843ac..2dd7f61c0b 100644 --- a/src/user/MOM_wave_interface.F90 +++ b/src/user/MOM_wave_interface.F90 @@ -567,7 +567,7 @@ subroutine MOM_wave_interface_init(time, G, GV, US, param_file, CS, diag) allocate(CS%US0_x(G%isdB:G%iedB,G%jsd:G%jed), source=0.0) allocate(CS%US0_y(G%isd:G%ied,G%jsdB:G%jedB), source=0.0) ! c. Langmuir number - allocate(CS%La_turb(G%isc:G%iec,G%jsc:G%jec), source=0.0) + allocate(CS%La_turb(G%isd:G%ied,G%jsd:G%jed), source=0.0) ! d. Viscosity for Stokes drift if (CS%StokesMixing) then allocate(CS%KvS(G%isd:G%Ied,G%jsd:G%jed,GV%ke), source=0.0)