@@ -163,6 +163,7 @@ module MOM_dynamics_split_RK2b
163
163
logical :: dtbt_use_bt_cont ! < If true, use BT_cont to calculate DTBT.
164
164
logical :: calculate_SAL ! < If true, calculate self-attraction and loading.
165
165
logical :: use_tides ! < If true, tidal forcing is enabled.
166
+ logical :: use_HA ! < If true, perform inline harmonic analysis.
166
167
logical :: remap_aux ! < If true, apply ALE remapping to all of the auxiliary 3-D
167
168
! ! variables that are needed to reproduce across restarts,
168
169
! ! similarly to what is done with the primary state variables.
@@ -1334,6 +1335,8 @@ subroutine initialize_dyn_split_RK2b(u, v, h, tv, uh, vh, eta, Time, G, GV, US,
1334
1335
" If true, apply tidal momentum forcing." , default= .false. )
1335
1336
call get_param(param_file, mdl, " CALCULATE_SAL" , CS% calculate_SAL, &
1336
1337
" If true, calculate self-attraction and loading." , default= CS% use_tides)
1338
+ call get_param(param_file, mdl, " USE_HA" , CS% use_HA, &
1339
+ " If true, perform inline harmonic analysis." , default= .false. )
1337
1340
call get_param(param_file, mdl, " BE" , CS% be, &
1338
1341
" If SPLIT is true, BE determines the relative weighting " // &
1339
1342
" of a 2nd-order Runga-Kutta baroclinic time stepping " // &
@@ -1447,8 +1450,13 @@ subroutine initialize_dyn_split_RK2b(u, v, h, tv, uh, vh, eta, Time, G, GV, US,
1447
1450
call CoriolisAdv_init(Time, G, GV, US, param_file, diag, CS% ADp, CS% CoriolisAdv)
1448
1451
if (CS% calculate_SAL) call SAL_init(h, tv, G, GV, US, param_file, CS% SAL_CSp, restart_CS)
1449
1452
if (CS% use_tides) then
1450
- call tidal_forcing_init(Time, G, US, param_file, CS% tides_CSp, CS% HA_CSp)
1451
- HA_CSp = > CS% HA_CSp
1453
+ if (CS% use_HA) then
1454
+ call tidal_forcing_init(Time, G, US, param_file, CS% tides_CSp, CS% HA_CSp)
1455
+ HA_CSp = > CS% HA_CSp
1456
+ else
1457
+ call tidal_forcing_init(Time, G, US, param_file, CS% tides_CSp)
1458
+ HA_CSp = > NULL ()
1459
+ endif
1452
1460
else
1453
1461
HA_CSp = > NULL ()
1454
1462
endif
0 commit comments