Skip to content

Commit ec308a0

Browse files
committed
Inline Harmonic Analysis
Update 6: The frequencies of 6 overtides/compound tides (MK3, M4, MS4, S4, M6, M8) have been added.
1 parent 032488f commit ec308a0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/parameterizations/lateral/MOM_tidal_forcing.F90

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ end function eq_phase
150150
!> Looks up angular frequencies for the main tidal constituents.
151151
!! Values used here are from previous versions of MOM.
152152
function tidal_frequency(constit)
153-
character (len=2), intent(in) :: constit !> Constituent to look up
153+
character (len=*), intent(in) :: constit !> Constituent to look up
154154
real :: tidal_frequency !> Angular frequency [rad s-1]
155155

156-
select case (constit)
156+
select case (trim(constit))
157157
case ("M2")
158158
tidal_frequency = 1.4051890e-4
159159
case ("S2")
@@ -174,6 +174,18 @@ function tidal_frequency(constit)
174174
tidal_frequency = 0.053234e-4
175175
case ("MM")
176176
tidal_frequency = 0.026392e-4
177+
case ("MK3")
178+
tidal_frequency = 2.1344007e-4
179+
case ("M4")
180+
tidal_frequency = 2.8103780e-4
181+
case ("MS4")
182+
tidal_frequency = 2.8596300e-4
183+
case ("S4")
184+
tidal_frequency = 2.9088820e-4
185+
case ("M6")
186+
tidal_frequency = 4.2155670e-4
187+
case ("M8")
188+
tidal_frequency = 5.6207560e-4
177189
case default
178190
call MOM_error(FATAL, "tidal_frequency: unrecognized constituent")
179191
end select

0 commit comments

Comments
 (0)