Skip to content

Commit

Permalink
Add linear tide forcing option
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed Nov 2, 2023
1 parent a2ece2a commit c773b78
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion components/mpas-ocean/src/Registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@
/>
<nml_option name="config_tidal_forcing_model" type="character" default_value="off"
description="Selects the mode in which tidal forcing is computed."
possible_values="'off','monochromatic'"
possible_values="'off','monochromatic','linear'"
/>
<nml_option name="config_tidal_forcing_monochromatic_amp" type="real" default_value="2.0" units="m"
description="Value of amplitude of monochromatic tide."
Expand All @@ -815,6 +815,18 @@
description="Value of baseline monochromatic tide, e.g., sea level rise."
possible_values="Any positive real number."
/>
<nml_option name="config_tidal_forcing_linear_baseline" type="real" default_value="0.0" units="days"
description="Value of baseline linear tide, e.g., sea level rise."
possible_values="Any positive real number."
/>
<nml_option name="config_tidal_forcing_linear_min" type="real" default_value="-1.0" units="days"
description="Value of minimum tide."
possible_values="Any real number."
/>
<nml_option name="config_tidal_forcing_linear_rate" type="real" default_value="-8.0" units="days"
description="Value of tide rate of change in m per day."
possible_values="Any real number."
/>
</nml_record>
<nml_record name="self_attraction_loading" mode="init;forward">
<nml_option name="config_use_self_attraction_loading" type="logical" default_value=".false."
Expand Down
4 changes: 4 additions & 0 deletions components/mpas-ocean/src/shared/mpas_ocn_tidal_forcing.F
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ subroutine ocn_tidal_forcing_build_array(domain, meshPool, forcingPool, statePoo
SIN(2.0_RKIND*pii/config_tidal_forcing_monochromatic_period * daysSinceStartOfSim - &
pii*config_tidal_forcing_monochromatic_phaseLag/180.0_RKIND) - &
config_tidal_forcing_monochromatic_baseline
elseif (trim(config_tidal_forcing_model) == 'linear') then
tidalHeight = max(config_tidal_forcing_linear_min, &
config_tidal_forcing_linear_baseline + &
config_tidal_forcing_linear_rate * daysSinceStartOfSim)
!else if (trim(config_tidal_forcing_type) == 'data') then
! ! data option
! ! pass
Expand Down

0 comments on commit c773b78

Please sign in to comment.