Skip to content

Commit f757db4

Browse files
committed
Update namelist files with new namelist option and section
1 parent 12970c7 commit f757db4

File tree

9 files changed

+35
-7
lines changed

9 files changed

+35
-7
lines changed

components/mpas-ocean/bld/build-namelist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,12 @@ if ($OCN_ISMF eq 'coupled') {
815815
add_default($nl, 'config_frazil_under_land_ice');
816816
}
817817

818+
############################
819+
# Namelist group: land_ice #
820+
############################
821+
822+
add_default($nl, 'config_land_ice_rho_ocean');
823+
818824
###################################
819825
# Namelist group: land_ice_fluxes #
820826
###################################

components/mpas-ocean/bld/build-namelist-group-list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ my @groups = qw(run_modes
2020
self_attraction_loading
2121
tidal_potential_forcing
2222
frazil_ice
23+
land_ice
2324
land_ice_fluxes
2425
advection
2526
bottom_drag

components/mpas-ocean/bld/build-namelist-section

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ add_default($nl, 'config_frazil_sea_ice_reference_salinity');
305305
add_default($nl, 'config_frazil_maximum_freezing_temperature');
306306
add_default($nl, 'config_frazil_use_surface_pressure');
307307

308+
############################
309+
# Namelist group: land_ice #
310+
############################
311+
312+
add_default($nl, 'config_land_ice_rho_ocean');
313+
308314
###################################
309315
# Namelist group: land_ice_fluxes #
310316
###################################

components/mpas-ocean/bld/namelist_files/namelist_defaults_mpaso.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@
428428
<config_frazil_maximum_freezing_temperature>0.0</config_frazil_maximum_freezing_temperature>
429429
<config_frazil_use_surface_pressure>.false.</config_frazil_use_surface_pressure>
430430

431+
<!-- land_ice -->
432+
<config_land_ice_rho_ocean>1028</config_land_ice_rho_ocean>
433+
431434
<!-- land_ice_fluxes -->
432435
<config_land_ice_flux_mode>'off'</config_land_ice_flux_mode>
433436
<config_land_ice_flux_mode ocn_grid="oQU240wLI">'pressure_only'</config_land_ice_flux_mode>

components/mpas-ocean/bld/namelist_files/namelist_definition_mpaso.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,16 @@ Default: Defined in namelist_defaults.xml
16441644
</entry>
16451645

16461646

1647+
<!-- land_ice -->
1648+
1649+
<entry id="config_land_ice_rho_ocean" type="real"
1650+
category="land_ice" group="land_ice">
1651+
ocean density used to calculate landIceDraft at floatation (assumed constant and uniform). Should be consistent with MALI's config_ocean_density when used to determine grounding line location. This is an alternative to the coupler variable effectiveDensityInLandIce which is not currently used."
1652+
1653+
Valid values: Any positive real number
1654+
Default: Defined in namelist_defaults.xml
1655+
</entry>
1656+
16471657
<!-- land_ice_fluxes -->
16481658

16491659
<entry id="config_land_ice_flux_mode" type="char*1024"

components/mpas-ocean/src/Registry.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,12 @@
10451045
possible_values=".true. or .false."
10461046
/>
10471047
</nml_record>
1048+
<nml_record name="land_ice" mode="init;forward">
1049+
<nml_option name="config_land_ice_rho_ocean" type="real" default_value="1028.0" units="kg m^-3"
1050+
description="ocean density used to calculate landIceDraft at floatation (assumed constant and uniform). Should be consistent with MALI's config_ocean_density when used to determine grounding line location. This is an alternative to the coupler variable effectiveDensityInLandIce which is not currently used."
1051+
possible_values="Any positive real number"
1052+
/>
1053+
</nml_record>
10481054
<nml_record name="land_ice_fluxes" mode="init;forward">
10491055
<nml_option name="config_land_ice_flux_mode" type="character" default_value="off"
10501056
description="Selects the mode in which land-ice fluxes are computed."
@@ -1078,10 +1084,6 @@
10781084
description="The density of land ice."
10791085
possible_values="Any positive real number"
10801086
/>
1081-
<nml_option name="config_land_ice_flux_rho_ocean" type="real" default_value="1028.0" units="kg m^-3"
1082-
description="ocean density used to calculate landIceDraft at floatation (assumed constant and uniform). Should be consistent with MALI's config_ocean_density. This is an alternative to the coupler variable effectiveDensityInLandIce which is not currently used."
1083-
possible_values="Any positive real number"
1084-
/>
10851087
<nml_option name="config_land_ice_flux_explicit_topDragCoeff" type="real" default_value="2.5e-3"
10861088
description="The top drag coefficient if config_use_implicit_top_drag_coeff is false."
10871089
possible_values="Any positive real number"

components/mpas-ocean/src/mode_init/mpas_ocn_init_global_ocean.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ subroutine ocn_init_setup_global_ocean_interpolate_land_ice_topography(domain, i
973973
real(kind=RKIND) :: rho_floatation
974974

975975
iErr = 0
976-
rho_floatation = config_land_ice_flux_rho_ocean
976+
rho_floatation = config_land_ice_rho_ocean
977977

978978
! Iteratively smooth land ice topography variables
979979
if (config_global_ocean_topography_smooth_weight > 0) then

components/mpas-ocean/src/shared/mpas_ocn_diagnostics.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4684,7 +4684,7 @@ subroutine ocn_diagnostics_init(domain, err)!{{{
46844684
landIceTopDragCoeff = config_land_ice_flux_explicit_topDragCoeff
46854685
endif
46864686
4687-
rho_floatation = config_land_ice_flux_rho_ocean
4687+
rho_floatation = config_land_ice_rho_ocean
46884688
46894689
if (trim(config_thickness_drag_type) == 'centered') then
46904690
thickEdgeDragChoice = thickEdgeDragCenter

components/mpas-ocean/src/shared/mpas_ocn_time_varying_forcing.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ subroutine ocn_time_varying_forcing_init(domain)!{{{
7171
! call init_****_forcing(domain)
7272
!endif
7373

74-
rho_floatation = config_land_ice_flux_rho_ocean
74+
rho_floatation = config_land_ice_rho_ocean
7575

7676
end subroutine ocn_time_varying_forcing_init!}}}
7777

0 commit comments

Comments
 (0)