Skip to content

Commit 041884a

Browse files
committed
Merge tag 'cam6_4_164' into cam-polarcap
Misc tag before CESM3 release
2 parents 69133df + 3a164a8 commit 041884a

63 files changed

Lines changed: 6773 additions & 5608 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config_files.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<entry_id>
66

77
<!-- This is the same as the default entry in
8-
cime/config/cesm/config_files.xml except for the value for clm:
8+
cime/config/cesm/config_files.xml except for the value for cam:
99
In a standalone cam checkout, COMP_ROOT_DIR_CAM is $SRCROOT
1010
rather than $SRCROOT/components/cam.
1111
However, because of the way overrides are handled, we need to
@@ -17,9 +17,9 @@
1717
<default_value>unset</default_value>
1818
<values>
1919
<value component="cam" >$SRCROOT</value>
20-
<value component="dlnd" >$CIMEROOT/src/components/data_comps/dlnd</value>
21-
<value component="slnd" >$CIMEROOT/src/components/stub_comps/slnd</value>
22-
<value component="xlnd" >$CIMEROOT/src/components/xcpl_comps/xlnd</value>
20+
<value component="datm" >$SRCROOT/components/cdeps/datm</value>
21+
<value component="satm" >$CIMEROOT/CIME/non_py/src/components/stub_comps_$COMP_INTERFACE/satm</value>
22+
<value component="xatm" >$SRCROOT/components/cmeps/med_test_comps/xatm</value>
2323
</values>
2424
<group>case_comps</group>
2525
<file>env_case.xml</file>

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
path = src/physics/ali_arms
2424
url = https://github.com/ESCOMP/ALI-ARMS
2525
fxrequired = AlwaysRequired
26-
fxtag = ALI_ARMS_v1.0.1
26+
fxtag = ALI_ARMS_v1.0.2
2727
fxDONOTUSEurl = https://github.com/ESCOMP/ALI-ARMS
2828

2929
[submodule "atmos_phys"]
@@ -139,7 +139,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
139139
[submodule "ccs_config"]
140140
path = ccs_config
141141
url = https://github.com/ESMCI/ccs_config_cesm.git
142-
fxtag = ccs_config_cesm1.0.79
142+
fxtag = ccs_config_cesm1.0.81
143143
fxrequired = ToplevelRequired
144144
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
145145

cime_config/testdefs/testlist_cam.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,7 @@
25162516
<machine name="derecho" compiler="intel" category="aux_cam"/>
25172517
</machines>
25182518
<options>
2519-
<option name="wallclock">00:40:00</option>
2519+
<option name="wallclock">00:50:00</option>
25202520
<option name="comment" >WACCM7 with MA chemistry</option>
25212521
</options>
25222522
</test>

doc/ChangeLog

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

src/chemistry/aerosol/aero_wetdep_cam.F90

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@ module aero_wetdep_cam
1616
use cam_history, only: addfld, add_default, horiz_only, outfld
1717
use wetdep, only: wetdep_init
1818

19-
use rad_constituents, only: rad_cnst_get_info
19+
use radiative_aerosol, only: rad_aer_get_info
2020

2121
use aerosol_properties_mod, only: aero_name_len
2222
use aerosol_properties_mod, only: aerosol_properties
2323
use modal_aerosol_properties_mod, only: modal_aerosol_properties
2424
use carma_aerosol_properties_mod, only: carma_aerosol_properties
2525

2626
use aerosol_state_mod, only: aerosol_state, ptr2d_t
27-
use modal_aerosol_state_mod, only: modal_aerosol_state
28-
use carma_aerosol_state_mod, only: carma_aerosol_state
27+
use aerosol_instances_mod, only: aerosol_instances_get_state, &
28+
aerosol_instances_get_props, &
29+
aerosol_instances_get_num_models
2930

3031
use aero_convproc, only: aero_convproc_readnl, aero_convproc_init, aero_convproc_intr
3132
use aero_convproc, only: convproc_do_evaprain_atonce
@@ -172,7 +173,7 @@ subroutine aero_wetdep_init( )
172173
history_chemistry_out=history_chemistry, &
173174
convproc_do_aer_out = convproc_do_aer)
174175

175-
call rad_cnst_get_info(0, nmodes=nmodes, nbins=nbins)
176+
call rad_aer_get_info(0, nmodes=nmodes, nbins=nbins)
176177

177178
if (nmodes>0) then
178179
aero_props => modal_aerosol_properties()
@@ -409,26 +410,30 @@ subroutine aero_wetdep_tend( state, dt, dlf, cam_out, ptend, pbuf)
409410
real(r8) :: sflxbc(pcols), sflxbcdp(pcols) ! deposition flux
410411

411412
class(aerosol_state), pointer :: aero_state
413+
class(aerosol_properties), pointer :: props_tmp
414+
integer :: iaermod
412415

413416
nullify(aero_state)
414417

415418
if (.not.wetdep_active) return
416419

417420
dcondt_resusp3d(:,:,:) = 0._r8
418421

419-
if (nmodes>0) then
420-
aero_state => modal_aerosol_state(state,pbuf)
421-
if (.not.associated(aero_state)) then
422-
call endrun(subrname//' : construction of aero_state modal_aerosol_state object failed')
423-
end if
424-
else if (nbins>0) then
425-
aero_state => carma_aerosol_state(state,pbuf)
426-
if (.not.associated(aero_state)) then
427-
call endrun(subrname//' : construction of aero_state carma_aerosol_state object failed')
422+
!REMOVECAM - get persistent state from factory; under CAM-SIMA states will be passed as scheme inputs
423+
nullify(aero_state)
424+
do iaermod = 1, aerosol_instances_get_num_models()
425+
props_tmp => aerosol_instances_get_props(iaermod, 0)
426+
if (associated(props_tmp)) then
427+
if (.not. props_tmp%model_is('BAM')) then
428+
aero_state => aerosol_instances_get_state(iaermod, 0, state%lchnk)
429+
exit
430+
end if
428431
end if
429-
else
430-
call endrun(subrname//' : cannot determine aerosol model')
431-
endif
432+
end do
433+
if (.not.associated(aero_state)) then
434+
call endrun(subrname//' : no non-BAM aerosol state available for wetdep')
435+
end if
436+
!REMOVECAM_END
432437

433438
lchnk = state%lchnk
434439
ncol = state%ncol
@@ -601,7 +606,7 @@ subroutine aero_wetdep_tend( state, dt, dlf, cam_out, ptend, pbuf)
601606
qqcw_in(:ncol,:) = qqcw(mm)%fld(:ncol,:)
602607
end if
603608

604-
f_act_conv(:ncol,:) = aero_state%convcld_actfrac( m, l, ncol, pver)
609+
f_act_conv(:ncol,:) = aero_state%convcld_actfrac( aero_props, m, l, ncol, pver)
605610
name = aname
606611
end if
607612

@@ -796,10 +801,7 @@ subroutine aero_wetdep_tend( state, dt, dlf, cam_out, ptend, pbuf)
796801

797802
end do bins_loop
798803

799-
if (associated(aero_state)) then
800-
deallocate(aero_state)
801-
nullify(aero_state)
802-
end if
804+
nullify(aero_state)
803805

804806
! if the user has specified prescribed aerosol dep fluxes then
805807
! do not set cam_out dep fluxes according to the prognostic aerosols

0 commit comments

Comments
 (0)