Skip to content

Commit

Permalink
Merge pull request ESCOMP#688 from fvitt/frontogen_gw_mpas
Browse files Browse the repository at this point in the history
cam6_3_138: frontogenesis gravity wave forcing with MPAS dycore
  • Loading branch information
fvitt authored Dec 1, 2023
2 parents 00188f3 + b84b58f commit 0c2e1df
Show file tree
Hide file tree
Showing 9 changed files with 507 additions and 144 deletions.
8 changes: 8 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 @@ -3135,12 +3137,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 @@ -3170,12 +3174,16 @@
<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>
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
88 changes: 88 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,92 @@
===============================================================

Tag name: cam6_3_138
Originator(s): fvitt, skamaroc
Date: 1 Dec 2023
One-line Summary: Frontogenesis gravity waves with MPAS dynamical core
Github PR URL: https://github.com/ESCOMP/CAM/pull/688

Purpose of changes (include the issue number and title text for each relevant GitHub issue):

Add the capability to generate frontal gravity wave forcings when the MPAS dynamical core
is used. See github issue #400.

Describe any changes made to build system: N/A

Describe any changes made to the namelist: N/A

List any changes to the defaults for the boundary datasets: N/A

Describe any substantial timing or memory changes: N/A

Code reviewed by: cacraigucar brian-eaton jtruesdal nusbaume

List all files eliminated: N/A

List all files added and what they do: N/A

List all existing files that have been modified, and describe the changes:
M bld/namelist_files/namelist_defaults_cam.xml
- default namelist settings for waccm on mpasa120 grid

M cime_config/config_pes.xml
- working cheyenne and derecho PE layouts for waccm on mpasa120 grid

M cime_config/testdefs/testlist_cam.xml
- tests for waccm-sc on mpasa120 grid

M cime_config/testdefs/testmods_dirs/cam/outfrq1d_physgrid_tem_mpasa120_wcmsc/user_nl_cam
- mpas namelist setting moved to namelist_defaults_cam.xml

M src/dynamics/mpas/dp_coupling.F90
- implement function for front generated gravity wave forcings
- code cleanup

M src/dynamics/mpas/driver/cam_mpas_subdriver.F90
- add MPAS stream fields for cell gradient coeffecients
- code cleanup

M src/dynamics/mpas/dyn_comp.F90
- set dyn_out pointers for frontogenesis calculations
- code cleanup

M src/dynamics/mpas/dyn_grid.F90
- minor code cleanup

If there were any failures reported from running test_driver.sh on any test
platform, and checkin with these failures has been OK'd by the gatekeeper,
then copy the lines from the td.*.status files for the failed tests to the
appropriate machine below. All failed tests must be justified.

cheyenne/intel/aux_cam:
ERP_Ln9_Vnuopc.C96_C96_mg17.F2000climo.cheyenne_intel.cam-outfrq9s_mg3 (Overall: FAIL) details:
FAIL ERP_Ln9_Vnuopc.C96_C96_mg17.F2000climo.cheyenne_intel.cam-outfrq9s_mg3 MODEL_BUILD time=2
ERP_Ln9_Vnuopc.f09_f09_mg17.FCSD_HCO.cheyenne_intel.cam-outfrq9s (Overall: FAIL) details:
FAIL ERP_Ln9_Vnuopc.f09_f09_mg17.FCSD_HCO.cheyenne_intel.cam-outfrq9s COMPARE_base_rest
FAIL ERP_Ln9_Vnuopc.f09_f09_mg17.FCSD_HCO.cheyenne_intel.cam-outfrq9s BASELINE /glade/p/cesm/amwg/cesm_baselines/cam6_3_137: DIFF
- pre-existing failures

derecho/intel/aux_cam:
ERP_Ln9_Vnuopc.C96_C96_mg17.F2000climo.derecho_intel.cam-outfrq9s_mg3 (Overall: PEND) details:
PEND ERP_Ln9_Vnuopc.C96_C96_mg17.F2000climo.derecho_intel.cam-outfrq9s_mg3 SHAREDLIB_BUILD RERUN
ERP_Ln9_Vnuopc.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq9s (Overall: FAIL) details:
FAIL ERP_Ln9_Vnuopc.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq9s COMPARE_base_rest
ERP_Ln9_Vnuopc.ne30pg3_ne30pg3_mg17.FW2000climo.derecho_intel.cam-outfrq9s_wcm_ne30 (Overall: PEND) details:
PEND ERP_Ln9_Vnuopc.ne30pg3_ne30pg3_mg17.FW2000climo.derecho_intel.cam-outfrq9s_wcm_ne30 RUN
PEND ERP_Ln9_Vnuopc.ne30pg3_ne30pg3_mg17.FW2000climo.derecho_intel.cam-outfrq9s_wcm_ne30 COMPARE_base_rest
- pre-existing failures

izumi/nag/aux_cam:
DAE_Vnuopc.f45_f45_mg37.FHS94.izumi_nag.cam-dae (Overall: FAIL) details:
FAIL DAE_Vnuopc.f45_f45_mg37.FHS94.izumi_nag.cam-dae RUN time=10
PEND DAE_Vnuopc.f45_f45_mg37.FHS94.izumi_nag.cam-dae COMPARE_base_da
- pre-existing failure

izumi/gnu/aux_cam: All PASS

Summarize any changes to answers: bit-for-bit unchanged

===============================================================
===============================================================

Tag name: cam6_3_137
Expand Down
Loading

0 comments on commit 0c2e1df

Please sign in to comment.