Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cam6_4_020: dz fix in convproc #1111

Merged
merged 8 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bld/namelist_files/use_cases/waccm_sc_2000_cam6.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<flbc_list>'CO2','CH4','N2O','CFC11','CFC12','CFC11eq'</flbc_list>

<!-- upper atmos forcings -->
<waccm_forcing_type>FIXED</waccm_forcing_type>
<waccm_forcing_fixed_ymd>20000101</waccm_forcing_fixed_ymd>
<waccm_forcing_type>CYCLICAL</waccm_forcing_type>
<waccm_forcing_cycle_yr>2000</waccm_forcing_cycle_yr>
<waccm_forcing_file>SCWACCM_forcing_WACCM6_zm_5day_L70_1975-2014_c191121.nc</waccm_forcing_file>
<waccm_forcing_datapath>atm/waccm/waccm_forcing</waccm_forcing_datapath>

Expand Down
4 changes: 2 additions & 2 deletions bld/namelist_files/use_cases/waccm_sc_2010_cam6.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<flbc_list>'CO2','CH4','N2O','CFC11','CFC12','CFC11eq'</flbc_list>

<!-- upper atmos forcings -->
<waccm_forcing_type>FIXED</waccm_forcing_type>
<waccm_forcing_fixed_ymd>20100101</waccm_forcing_fixed_ymd>
<waccm_forcing_type>CYCLICAL</waccm_forcing_type>
<waccm_forcing_cycle_yr>2010</waccm_forcing_cycle_yr>
<waccm_forcing_file>SCWACCM_forcing_WACCM6_zm_5day_L70_1975-2014_c191121.nc</waccm_forcing_file>
<waccm_forcing_datapath>atm/waccm/waccm_forcing</waccm_forcing_datapath>

Expand Down
132 changes: 131 additions & 1 deletion doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,135 @@
===============================================================

Tag name: cam6_4_020
Originator(s): fvitt
Date: 14 Aug 2024
One-line Summary: Correction to aerosol convective removal and other misc fixes
Github PR URL: https://github.com/ESCOMP/CAM/pull/1111

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

Fixes to the follow:
. an error in the calculation of dz in the aerosol convective removal code
. issue #1030 -- Incorrect waccm_forcing namelist settings in FWsc2000climo and FWsc2010climo compsets
. issue #1125 -- archive_baselines does not append compiler onto derecho baselines properly

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

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/use_cases/waccm_sc_2000_cam6.xml
M bld/namelist_files/use_cases/waccm_sc_2010_cam6.xml
- corrections to waccm_forcing namelist settings

M src/chemistry/modal_aero/modal_aero_convproc.F90
- correctly calculate dz
- misc code clean up

M test/system/archive_baseline.sh
- append compiler name to tag name used in baseline path

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.

derecho/intel/aux_cam:
FAIL ERP_Ln9.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq9s
- pre-existing failure due to HEMCO not having reproducible results issues #1018 and #856

FAIL SMS_D_Ln9.T42_T42.FSCAM.derecho_intel.cam-outfrq9s
- pre-existing failure -- need fix in CICE external

PEND SMS_D_Ln9_P1280x1.ne0ARCTICne30x4_ne0ARCTICne30x4_mt12.FHIST.derecho_intel.cam-outfrq9s
PEND SMS_D_Ln9_P1280x1.ne0CONUSne30x8_ne0CONUSne30x8_mt12.FCHIST.derecho_intel.cam-outfrq9s
- pre-existing failures -- need fix in CLM external

DIFF ERC_D_Ln9.f19_f19_mg17.QPC6.derecho_intel.cam-outfrq3s_cosp
DIFF ERC_D_Ln9_P144x1.ne16pg3_ne16pg3_mg17.QPC6HIST.derecho_intel.cam-outfrq3s_ttrac_usecase
DIFF ERP_D_Ln9.f19_f19_mg17.QPC6.derecho_intel.cam-outfrq9s
DIFF ERP_D_Ln9.ne30pg3_ne30pg3_mg17.FLTHIST.derecho_intel.cam-outfrq9s
DIFF ERP_D_Ln9.ne30pg3_ne30pg3_mg17.FLTHIST.derecho_intel.cam-outfrq9s_rrtmgp
DIFF ERP_D_Ln9_P64x2.f09_f09_mg17.QSC6.derecho_intel.cam-outfrq9s
DIFF ERP_Ld3.f09_f09_mg17.FWHIST.derecho_intel.cam-reduced_hist1d
DIFF ERP_Ln9.C96_C96_mg17.F2000climo.derecho_intel.cam-outfrq9s_mg3
DIFF ERP_Ln9.f09_f09_mg17.F1850.derecho_intel.cam-outfrq9s
DIFF ERP_Ln9.f09_f09_mg17.F2000climo.derecho_intel.cam-outfrq9s
DIFF ERP_Ln9.f09_f09_mg17.F2010climo.derecho_intel.cam-outfrq9s
DIFF ERP_Ln9.f09_f09_mg17.FHIST_BDRD.derecho_intel.cam-outfrq9s
DIFF ERP_Ln9.f19_f19_mg17.FWsc1850.derecho_intel.cam-outfrq9s
DIFF ERP_Ln9.ne30pg3_ne30pg3_mg17.FCnudged.derecho_intel.cam-outfrq9s
DIFF ERP_Ln9.ne30pg3_ne30pg3_mg17.FW2000climo.derecho_intel.cam-outfrq9s
DIFF ERP_Ln9_P24x3.f45_f45_mg37.QPWmaC6.derecho_intel.cam-outfrq9s_mee_fluxes
DIFF ERS_Ld3.f10_f10_mg37.F1850.derecho_intel.cam-outfrq1d_14dec_ghg_cam7
DIFF ERS_Ln9.f09_f09_mg17.FX2000.derecho_intel.cam-outfrq9s
DIFF ERS_Ln9.f19_f19_mg17.FXSD.derecho_intel.cam-outfrq9s
DIFF ERS_Ln9_P288x1.mpasa120_mpasa120.F2000climo.derecho_intel.cam-outfrq9s_mpasa120
DIFF ERS_Ln9_P36x1.mpasa480_mpasa480.F2000climo.derecho_intel.cam-outfrq9s_mpasa480
DIFF SMS_D_Ln9.f09_f09_mg17.FCts2nudged.derecho_intel.cam-outfrq9s_leapday
DIFF SMS_D_Ln9.f09_f09_mg17.FCvbsxHIST.derecho_intel.cam-outfrq9s
DIFF SMS_D_Ln9.f09_f09_mg17.FSD.derecho_intel.cam-outfrq9s
DIFF SMS_D_Ln9.f19_f19_mg17.FWma2000climo.derecho_intel.cam-outfrq9s
DIFF SMS_D_Ln9.f19_f19_mg17.FWma2000climo.derecho_intel.cam-outfrq9s_waccm_ma_mam4
DIFF SMS_D_Ln9.f19_f19_mg17.FXHIST.derecho_intel.cam-outfrq9s_amie
DIFF SMS_D_Ln9.f19_f19_mg17.QPC2000climo.derecho_intel.cam-outfrq3s_usecase
DIFF SMS_D_Ln9.ne16pg3_ne16pg3_mg17.FX2000.derecho_intel.cam-outfrq9s
DIFF SMS_D_Ln9.ne30pg3_ne30pg3_mg17.FCts4MTHIST.derecho_intel.cam-outfrq9s
DIFF SMS_D_Ln9.ne30pg3_ne30pg3_mg17.FMTHIST.derecho_intel.cam-outfrq9s
DIFF SMS_D_Ln9_P1280x1.ne30pg3_ne30pg3_mg17.FCLTHIST.derecho_intel.cam-outfrq9s
DIFF SMS_Ld1.f09_f09_mg17.FCHIST_GC.derecho_intel.cam-outfrq1d
DIFF SMS_Ld1.f09_f09_mg17.FW2000climo.derecho_intel.cam-outfrq1d
DIFF SMS_Ld1.ne30pg3_ne30pg3_mg17.FC2010climo.derecho_intel.cam-outfrq1d
DIFF SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h
DIFF SMS_Lm13.f10_f10_mg37.F2000climo.derecho_intel.cam-outfrq1m
DIFF SMS_Ln9.f09_f09_mg17.F2010climo.derecho_intel.cam-nudging
DIFF SMS_Ln9.f09_f09_mg17.FW1850.derecho_intel.cam-reduced_hist3s
DIFF SMS_Ln9.ne30pg3_ne30pg3_mg17.FW2000climo.derecho_intel.cam-outfrq9s_rrtmgp
- expected baseline test failures due to correction in modal_aero_convproc

derecho/nvhpc/aux_cam:
DIFF ERS_Ln9_G4-a100-openacc.ne30pg3_ne30pg3_mg17.F2000dev.derecho_nvhpc.cam-outfrq9s_mg3_default
- expected baseline test failure due to correction in modal_aero_convproc

izumi/nag/aux_cam:
FAIL DAE.f45_f45_mg37.FHS94.izumi_nag.cam-dae
- pre-existing failure - issue #670

DIFF ERC_D_Ln9.f10_f10_mg37.QPC6.izumi_nag.cam-outfrq3s_am
DIFF ERC_D_Ln9.f10_f10_mg37.QPC6.izumi_nag.cam-outfrq3s_cospsathist
DIFF ERC_D_Ln9.f10_f10_mg37.QPC6.izumi_nag.cam-outfrq3s
DIFF ERC_D_Ln9.f10_f10_mg37.QPWmaC6.izumi_nag.cam-outfrq3s
DIFF ERI_D_Ln18.f19_f19_mg17.QPC6.izumi_nag.cam-ghgrmp_e8
DIFF SMS_P48x1_D_Ln3.f09_f09_mg17.QPC6HIST.izumi_nag.cam-outfrq3s_co2cycle_usecase
- expected baseline test failures due to correction in modal_aero_convproc

izumi/gnu/aux_cam:
DIFF ERP_D_Ln9.C48_C48_mg17.QPC6.izumi_gnu.cam-outfrq9s
DIFF ERP_D_Ln9.ne3pg3_ne3pg3_mg37.QPC6.izumi_gnu.cam-outfrq9s_rrtmgp
DIFF SCT_D_Ln7.T42_T42_mg17.QPC6.izumi_gnu.cam-scm_prep_c6
- expected baseline test failures due to correction in modal_aero_convproc

Summarize any changes to answers:
larger than roundoff but same climate

URL for AMWG diagnostics output used to validate new climate:

https://acomstaff.acom.ucar.edu/tilmes/amwg/cam7/f.e23_beta02.FLTHIST_ne30.conv_dz_bug_1995_2004_vs_f.e23_beta02.FLTHIST_ne30.001_1995_2004/website/index.html
https://acomstaff.acom.ucar.edu/tilmes/amwg/cam7/f.cam6_3_160.FMTHIST_ne30.moving_mtn.output.conv7_1996_2004_vs_f.cam6_3_160.FMTHIST_ne30.moving_mtn.output.conv6_1996_2004/website/html_table/mean_tables.html

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

Tag name: cam6_4_019
Originator(s): katec, cacraig, vlarson, bstephens82, huebleruwm, zarzycki, JulioTBacmeister, jedwards4b
Date: 12 August 2024
Expand Down Expand Up @@ -310,7 +440,7 @@ Issue #1063 - Possible modification to RRTMG-P for ~80km top model
as well as the cam7-MT configuration.

Note that this modification is still being tested for scientific validity
in the cam7-MT configuration.
in the cam7-MT configuration.

Issue #1097 - HEMCO reference in .gitmodules is a branch not a tag.
. Modify .gitmodules to resolve #1097
Expand Down
14 changes: 2 additions & 12 deletions src/chemistry/modal_aero/modal_aero_convproc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,6 @@ subroutine ma_convproc_tend( &
real(r8) tmpmata(pcnst_extd,3) ! work variables
real(r8) xinv_ntsub ! 1.0/ntsub
real(r8) wup(pver) ! working updraft velocity (m/s)
real(r8) zmagl(pver) ! working height above surface (m)
real(r8) zkm ! working height above surface (km)

real(r8) :: dcondt2(pcols,pver,pcnst_extd)
real(r8) :: conu2(pcols,pver,pcnst_extd)
Expand Down Expand Up @@ -1293,16 +1291,6 @@ subroutine ma_convproc_tend( &
dtsub = dt*xinv_ntsub
courantmax = courantmax*xinv_ntsub

! zmagl(k) = height above surface for middle of level k
zmagl(pver) = 0.0_r8
do k = pver, 1, -1
if (k < pver) then
zmagl(k) = zmagl(k+1) + 0.5_r8*dz
end if
dz = dp_i(k)*hund_ovr_g/rhoair_i(k)
zmagl(k) = zmagl(k) + 0.5_r8*dz
end do

! load tracer mixing ratio array, which will be updated at the end of each jtsub interation
q_i(1:pver,1:pcnst) = q(icol,1:pver,1:pcnst)

Expand Down Expand Up @@ -1448,6 +1436,7 @@ subroutine ma_convproc_tend( &

! compute lagrangian transport time (dt_u) and updraft fractional area (fa_u)
! *** these must obey dt_u(k)*mu_p_eudp(k) = dp_i(k)*fa_u(k)
dz = dp_i(k)*hund_ovr_g/rhoair_i(k)
dt_u(k) = dz/wup(k)
dt_u(k) = min( dt_u(k), dt )
fa_u(k) = dt_u(k)*(mu_p_eudp(k)/dp_i(k))
Expand Down Expand Up @@ -2324,6 +2313,7 @@ subroutine accumulate_to_larger_mode( spc_name, lptr, prevap )

integer :: m,n, nl,ns

nl = -1
! find constituent index of the largest mode for the species
loop1: do m = 1,ntot_amode-1
nl = lptr(mode_size_order(m))
Expand Down
2 changes: 1 addition & 1 deletion test/system/archive_baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ case $hostname in
echo "Must specify CAM_FC"
fi
test_file_list="tests_pretag_derecho_${CAM_FC,,}"
cam_tag=$1
cam_tag=$1_${CAM_FC,,}
baselinedir="/glade/campaign/cesm/community/amwg/cam_baselines/$cam_tag"
;;

Expand Down
Loading