Skip to content

Commit

Permalink
Merge remote-tracking branch 'ESCOMP/cam_development' into aircraft_e…
Browse files Browse the repository at this point in the history
…missions
  • Loading branch information
fvitt committed Dec 1, 2023
2 parents 0aa487d + 0c2e1df commit ca1c05f
Show file tree
Hide file tree
Showing 15 changed files with 716 additions and 180 deletions.
2 changes: 1 addition & 1 deletion Externals_CAM.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ local_path = src/dynamics/mpas/dycore
protocol = git
repo_url = https://github.com/MPAS-Dev/MPAS-Model.git
sparse = ../.mpas_sparse_checkout
hash = ff76a231
hash = b8c33daa
required = True

[hemco]
Expand Down
1 change: 1 addition & 0 deletions bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -4061,6 +4061,7 @@ if ($dyn =~ /mpas/) {
add_default($nl, 'mpas_zd');
add_default($nl, 'mpas_xnutr');
add_default($nl, 'mpas_cam_coef');
add_default($nl, 'mpas_cam_damping_levels');
add_default($nl, 'mpas_print_detailed_minmax_vel');
add_default($nl, 'mpas_rayleigh_damp_u');
add_default($nl, 'mpas_rayleigh_damp_u_timescale_days');
Expand Down
9 changes: 9 additions & 0 deletions bld/namelist_files/namelist_defaults_cam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@

<ncdata dyn="se" hgrid="ne0np4CONUS.ne30x8" nlev="70" ic_ymd="101">atm/waccm/ic/FW2000_CONUS_30x8_L70_01-01-0001_c200602.nc</ncdata>

<ncdata hgrid="mpasa120" nlev="70" waccm_phys="1">atm/waccm/ic/mpasa120km.waccm_fulltopo_c220818.nc</ncdata>

<ncdata hgrid="mpasa120" nlev="32" >atm/cam/inic/mpas/cami_01-01-2000_00Z_mpasa120_L32_CFSR_c210426.nc</ncdata>
<ncdata hgrid="mpasa480" nlev="32" >atm/cam/inic/mpas/cami_01-01-2000_00Z_mpasa480_L32_CFSR_c211013.nc</ncdata>

Expand Down Expand Up @@ -3140,12 +3142,14 @@
<mpas_time_integration_order > 2 </mpas_time_integration_order>
<mpas_dt > 1800.0D0 </mpas_dt>
<mpas_dt hgrid="mpasa120" > 900.0D0 </mpas_dt>
<mpas_dt hgrid="mpasa120" waccm_phys="1"> 600.D0 </mpas_dt>
<mpas_dt hgrid="mpasa60" > 450.0D0 </mpas_dt>
<mpas_dt hgrid="mpasa30" > 225.0D0 </mpas_dt>

<mpas_split_dynamics_transport>.true.</mpas_split_dynamics_transport>
<mpas_number_of_sub_steps > 2 </mpas_number_of_sub_steps>
<mpas_dynamics_split_steps > 3 </mpas_dynamics_split_steps>
<mpas_dynamics_split_steps hgrid="mpasa120" waccm_phys="1"> 4 </mpas_dynamics_split_steps>
<mpas_h_mom_eddy_visc2 > 0.0D0 </mpas_h_mom_eddy_visc2>
<mpas_h_mom_eddy_visc4 > 0.0D0 </mpas_h_mom_eddy_visc4>
<mpas_v_mom_eddy_visc2 > 0.0D0 </mpas_v_mom_eddy_visc2>
Expand Down Expand Up @@ -3175,12 +3179,17 @@
<mpas_smagorinsky_coef > 0.125D0 </mpas_smagorinsky_coef>
<mpas_mix_full > .true. </mpas_mix_full>
<mpas_epssm > 0.1D0 </mpas_epssm>
<mpas_epssm hgrid="mpasa120" waccm_phys="1"> 0.5D0 </mpas_epssm>
<mpas_smdiv > 0.1D0 </mpas_smdiv>
<mpas_apvm_upwinding > 0.5D0 </mpas_apvm_upwinding>
<mpas_apvm_upwinding hgrid="mpasa120" waccm_phys="1"> 0.0D0 </mpas_apvm_upwinding>
<mpas_h_ScaleWithMesh > .true. </mpas_h_ScaleWithMesh>
<mpas_zd > 22000.0D0 </mpas_zd>
<mpas_zd hgrid="mpasa120" waccm_phys="1"> 80000.0D0 </mpas_zd>
<mpas_xnutr > 0.2D0 </mpas_xnutr>
<mpas_cam_coef > 0.0D0 </mpas_cam_coef>
<mpas_cam_coef hgrid="mpasa120" waccm_phys="1"> 0.2D0 </mpas_cam_coef>
<mpas_cam_damping_levels > 0 </mpas_cam_damping_levels>
<mpas_rayleigh_damp_u > .true. </mpas_rayleigh_damp_u>
<mpas_rayleigh_damp_u_timescale_days> 5.0 </mpas_rayleigh_damp_u_timescale_days>
<mpas_number_rayleigh_damp_u_levels> 5 </mpas_number_rayleigh_damp_u_levels>
Expand Down
23 changes: 17 additions & 6 deletions bld/namelist_files/namelist_definition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8411,15 +8411,26 @@ Default: 0.2

<entry id="mpas_cam_coef" type="real" category="mpas"
group="damping" valid_values="">
Coefficient for scaling the 2nd-order horizontal diffusion in the mpas_cam absorbing layer.
A value of 1.0 will result in layered diffusion similar to CAM-SE and gives damping
coefficients of 0.2216E7, 0.6482E6, 0.1927E6 in the top-most three layers on the dynamics
variables u, w, and theta. The top 3 damping coefficients scale linearly with
mpas_cam_coef. 0.0 disables SE like 2nd-order diffusion in the absorbing layer and is the
current default. Sponge layer absorption can also be provided by Rayleigh damping.
Coefficient for scaling the 2nd-order horizontal diffusion in the mpas_cam absorbing
layer. The absorbing layer depth is controlled with mpas_cam_damping_levels. The damping
coefficients scale linearly with mpas_cam_coef. A value of 0.0 (or
mpas_cam_damping_levels=0) disables the 2nd-order diffusion in the absorbing layer. Sponge
layer absorption can also be provided by Rayleigh damping.

E.g. a value of 1.0 with mpas_cam_damping_levels=3 will result in damping coefficients of
2E6 m^2/s, 6E5, 2E5 in the top-most three layers on the dynamics variables u, w, and
theta.
Default: 0.0
</entry>

<entry id="mpas_cam_damping_levels" type="integer" category="mpas"
group="damping" valid_values="">
Number mpas_cam absorbing layers in which to apply 2nd-order horizontal diffusion.
Viscocity linearly ramps to zero by layer number from the top. mpas_cam_damping_levels and
mpas_cam_coef must both be greater than 0 for the diffusion to be enabled.
Default: 0
</entry>

<entry id="mpas_rayleigh_damp_u" type="logical" category="mpas"
group="damping" valid_values="">
Whether to apply Rayleigh damping on horizontal velocity in the top-most model levels.
Expand Down
42 changes: 42 additions & 0 deletions cime_config/config_pes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,48 @@
</pes>
</mach>
</grid>
<grid name="a%mpasa120">
<mach name="cheyenne">
<pes pesize="any" compset="_CAM60%WCSC">
<ntasks>
<ntasks_atm>360</ntasks_atm>
<ntasks_lnd>360</ntasks_lnd>
<ntasks_rof>360</ntasks_rof>
<ntasks_ice>360</ntasks_ice>
<ntasks_ocn>360</ntasks_ocn>
<ntasks_cpl>360</ntasks_cpl>
</ntasks>
<nthrds>
<nthrds_atm>1</nthrds_atm>
<nthrds_lnd>1</nthrds_lnd>
<nthrds_rof>1</nthrds_rof>
<nthrds_ice>1</nthrds_ice>
<nthrds_ocn>1</nthrds_ocn>
<nthrds_cpl>1</nthrds_cpl>
</nthrds>
</pes>
</mach>
<mach name="derecho">
<pes pesize="any" compset="_CAM60%WCSC">
<ntasks>
<ntasks_atm>-4</ntasks_atm>
<ntasks_lnd>-4</ntasks_lnd>
<ntasks_rof>-4</ntasks_rof>
<ntasks_ice>-4</ntasks_ice>
<ntasks_ocn>-4</ntasks_ocn>
<ntasks_cpl>-4</ntasks_cpl>
</ntasks>
<nthrds>
<nthrds_atm>1</nthrds_atm>
<nthrds_lnd>1</nthrds_lnd>
<nthrds_rof>1</nthrds_rof>
<nthrds_ice>1</nthrds_ice>
<nthrds_ocn>1</nthrds_ocn>
<nthrds_cpl>1</nthrds_cpl>
</nthrds>
</pes>
</mach>
</grid>
<grid name="a%ne16" >
<mach name="cheyenne">
<pes pesize="any" compset="_CAM\d0%WX">
Expand Down
24 changes: 22 additions & 2 deletions cime_config/testdefs/testlist_cam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -726,15 +726,16 @@
<option name="wallclock">00:10:00</option>
</options>
</test>
<test compset="FWsc2000climo" grid="mpasa120_mpasa120" name="ERS_Ld3_Vnuopc_P360x1" testmods="cam/outfrq1d_physgrid_tem_mpasa120_wcmsc">
<test compset="FWsc2000climo" grid="mpasa120_mpasa120" name="ERS_Ld3" testmods="cam/outfrq1d_physgrid_tem_mpasa120_wcmsc">
<machines>
<machine name="cheyenne" compiler="intel" category="prealpha"/>
<machine name="cheyenne" compiler="intel" category="waccm"/>
<machine name="cheyenne" compiler="intel" category="frontogw_mpas"/>
<machine name="cheyenne" compiler="intel" category="tem_diags"/>
</machines>
<options>
<option name="comment" >TEM diagnostics and zonal-average output</option>
<option name="wallclock">00:20:00</option>
<option name="wallclock">00:30:00</option>
</options>
</test>
<test compset="FWsc2000climo" grid="f09_f09_mg17" name="ERP_Ln9_Vnuopc" testmods="cam/outfrq9s_physgrid_tem_1deg">
Expand Down Expand Up @@ -2133,6 +2134,25 @@
<!-- WACCM COMPSETS -->
<!-- @@@@@@@@@@@@@@@@@@@@@@ -->

<test compset="FWsc2000climo" grid="mpasa120_mpasa120" name="SMS_D_Ln9_Vnuopc" testmods="cam/outfrq9s_mpasa120">
<machines>
<machine name="cheyenne" compiler="intel" category="frontogw_mpas"/>
<machine name="cheyenne" compiler="intel" category="waccm"/>
</machines>
<options>
<option name="wallclock">00:30:00</option>
</options>
</test>
<test compset="FWsc2000climo" grid="mpasa120_mpasa120" name="ERS_Ln9_Vnuopc" testmods="cam/outfrq9s_mpasa120">
<machines>
<machine name="cheyenne" compiler="intel" category="frontogw_mpas"/>
<machine name="cheyenne" compiler="intel" category="waccm"/>
</machines>
<options>
<option name="wallclock">00:30:00</option>
</options>
</test>

<test compset="FWSD" grid="f09_f09_mg17" name="ERP_Lh12_Vnuopc" testmods="cam/outfrq3h">
<machines>
<machine name="cheyenne" compiler="intel" category="prebeta"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
ncdata = '$DIN_LOC_ROOT/atm/waccm/ic/mpasa120km.waccm_fulltopo_c220818.nc'

mpas_cam_coef = 0.2D0
mpas_rayleigh_damp_u_timescale_days = 5.D0
mpas_zd = 80000.0D0
mpas_apvm_upwinding = 0.0D0
mpas_dt = 600.D0
mpas_dynamics_split_steps = 4
mpas_epssm = 0.5D0

use_gw_front = .false.

phys_grid_ctem_nfreq = -12
phys_grid_ctem_zm_nbas = 120
phys_grid_ctem_za_nlat = 90
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ mfilt=1,1,1,1,1,1
ndens=1,1,1,1,1,1
nhtfrq=9,9,9,9,9,9
inithist='ENDOFRUN'
mpas_cam_coef=1.0D0
mpas_cam_damping_levels=3
Loading

0 comments on commit ca1c05f

Please sign in to comment.