Skip to content

Commit c925265

Browse files
brandon.reichladcroft
authored andcommitted
Scale tideamp to L/T instead of Z/T
- Setting BBL_USE_TIDAL_BG = True causes the model to fail dimensional consistency test. If you set the spatial scale as m_to_L instead of m_to_Z in MOM_set_viscosity it fixes the issue. - Fixing documentation fo L/T scaling of tideamp - Change suggested Hallberg
1 parent 12d7514 commit c925265

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/parameterizations/vertical/MOM_set_viscosity.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ module MOM_set_visc
133133
! Allocatable data arrays
134134
real, allocatable, dimension(:,:) :: cdrag_u !< The spatially varying quadratic drag coefficient [nondim]
135135
real, allocatable, dimension(:,:) :: cdrag_v !< The spatially varying quadratic drag coefficient [nondim]
136-
real, allocatable, dimension(:,:) :: tideamp !< RMS tidal amplitude at h points [Z T-1 ~> m s-1]
136+
real, allocatable, dimension(:,:) :: tideamp !< RMS tidal amplitude at h points [L T-1 ~> m s-1]
137137
! Diagnostic arrays
138138
real, allocatable, dimension(:,:) :: bbl_u !< BBL mean U current [L T-1 ~> m s-1]
139139
real, allocatable, dimension(:,:) :: bbl_v !< BBL mean V current [L T-1 ~> m s-1]
@@ -3298,7 +3298,7 @@ subroutine set_visc_init(Time, G, GV, US, param_file, diag, visc, CS, restart_CS
32983298
allocate(CS%tideamp(isd:ied,jsd:jed), source=0.0)
32993299
filename = trim(CS%inputdir) // trim(tideamp_file)
33003300
call log_param(param_file, mdl, "INPUTDIR/TIDEAMP_FILE", filename)
3301-
call MOM_read_data(filename, tideamp_var, CS%tideamp, G%domain, scale=US%m_to_Z*US%T_to_s)
3301+
call MOM_read_data(filename, tideamp_var, CS%tideamp, G%domain, scale=US%m_s_to_L_T)
33023302
call pass_var(CS%tideamp,G%domain)
33033303
endif
33043304
endif

0 commit comments

Comments
 (0)