Skip to content

Commit 5fa027d

Browse files
committed
add submodule
2 parents f078efb + d722812 commit 5fa027d

17 files changed

Lines changed: 612 additions & 203 deletions

File tree

.gitmodules

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
fxtag = carma4_09
1313
fxDONOTUSEurl = https://github.com/ESCOMP/CARMA_base.git
1414

15-
[submodule "pumas"]
16-
path = src/physics/pumas
17-
url = https://github.com/ESCOMP/PUMAS
18-
fxrequired = AlwaysRequired
19-
fxtag = pumas_cam-release_v1.39
20-
fxDONOTUSEurl = https://github.com/ESCOMP/PUMAS
21-
2215
[submodule "pumas-frozen"]
2316
path = src/physics/pumas-frozen
2417
url = https://github.com/ESCOMP/PUMAS

bld/build-namelist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ elsif ($rad_pkg =~ m/rrtmgp/) {
739739
my $abs_path = quote_string(set_abs_filepath($rel_path, $cam_dir));
740740
$nl->set_variable_value('radiation_nl', 'rrtmgp_coefs_sw_file', $abs_path);
741741

742-
add_default($nl, 'p_top_for_rrtmgp');
742+
add_default($nl, 'p_top_for_equil_rad');
743743

744744
}
745745

@@ -3339,7 +3339,7 @@ if ($cfg->get('microphys') =~ /^mg/) {
33393339
add_default($nl, 'micro_mg_accre_sees_auto');
33403340
add_default($nl, 'micro_mg_vtrms_factor');
33413341
add_default($nl, 'micro_mg_implicit_fall');
3342-
add_default($nl, 'pumas_stochastic_tau_kernel_filename', 'val'=>"$cfgdir/../src/physics/pumas/KBARF_tau_kernel.dat");
3342+
add_default($nl, 'pumas_stochastic_tau_kernel_filename', 'val'=>"$cfgdir/../src/atmos_phys/schemes/pumas/pumas/KBARF_tau_kernel.dat");
33433343

33443344
#set path for stochastic_tau_kernel_filename
33453345
my $cam_dir = $cfg->get('cam_dir');

bld/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ sub write_filepath
21612161
}
21622162

21632163
if ($phys_pkg eq 'cam7') {
2164-
print $fh "$camsrcdir/src/physics/pumas\n";
2164+
print $fh "$camsrcdir/src/atmos_phys/schemes/pumas/pumas\n";
21652165
} else {
21662166
print $fh "$camsrcdir/src/physics/pumas-frozen\n";
21672167
}

bld/namelist_files/namelist_defaults_cam.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,11 @@
575575
<rrtmgp_coefs_lw_file>src/physics/rrtmgp/data/rrtmgp-gas-lw-g128.nc</rrtmgp_coefs_lw_file>
576576
<rrtmgp_coefs_sw_file>src/physics/rrtmgp/data/rrtmgp-gas-sw-g112.nc</rrtmgp_coefs_sw_file>
577577

578-
<p_top_for_rrtmgp> 10.D0 </p_top_for_rrtmgp>
579-
<p_top_for_rrtmgp waccmx="1" > 1.D0 </p_top_for_rrtmgp>
580-
<p_top_for_rrtmgp waccm_phys="1" > 1.D0 </p_top_for_rrtmgp>
578+
<!-- Pressure top for blending region for radiation heating -->
579+
<p_top_for_equil_rad> 0.D0 </p_top_for_equil_rad>
580+
<p_top_for_equil_rad waccmx="1" > 1.D0 </p_top_for_equil_rad>
581+
<p_top_for_equil_rad waccm_phys="1" > 1.D0 </p_top_for_equil_rad>
582+
<p_top_for_equil_rad rad="rrtmgp"> 2.D0 </p_top_for_equil_rad>
581583

582584
<!-- CAM-RT absorptivity/emissivity lookup table -->
583585
<absems_data rad="camrt">atm/cam/rad/abs_ems_factors_fastvx.c030508.nc</absems_data>

bld/namelist_files/namelist_definition.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5771,11 +5771,12 @@ Calculate radiative effect of graupel/hail (using snow optics)
57715771
Default: FALSE
57725772
</entry>
57735773

5774-
<entry id="p_top_for_rrtmgp" type="real" category="radiation"
5775-
group="radiation_nl" valid_values="" >
5776-
Top pressure level for RRTMGP
5774+
<entry id="p_top_for_equil_rad" type="real" category="radiation"
5775+
group="radheat_nl" valid_values="" >
5776+
Top pressure level for non-LTE blending region
57775777
Default: 1.0 for WACCM/WACCMX
5778-
10. for all other CAM runs
5778+
2. for all other RRTMGP runs
5779+
0.0 for all other runs
57795780
</entry>
57805781

57815782
<entry id="use_rad_dt_cosz" type="logical" category="radiation"

doc/ChangeLog

Lines changed: 376 additions & 2 deletions
Large diffs are not rendered by default.

src/chemistry/aerosol/aero_convproc.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ subroutine aero_convproc_intr( aero_props, aero_state, state, ptend, pbuf, ztodt
460460

461461
ndx = aer_cnst_ndx(mm)
462462

463-
if (ndx>0) call outfld( trim(cnst_name_extd(1,mm))//'SFWET', aerdepwetis(:,ndx), pcols, lchnk )
463+
if (ndx>0) call outfld( trim(cnst_name_extd(1,mm))//'SFWETC', aerdepwetis(:,ndx), pcols, lchnk )
464464
call outfld( trim(cnst_name_extd(1,mm))//'SFSIC', sflxic(:,mm), pcols, lchnk )
465465
call outfld( trim(cnst_name_extd(1,mm))//'SFSEC', sflxec(:,mm), pcols, lchnk )
466466

src/chemistry/aerosol/aero_wetdep_cam.F90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ subroutine add_hist_fields(name,baseunits)
268268

269269
call addfld (trim(name)//'SFWET', &
270270
horiz_only, 'A',baseunits//'/m2/s ','Wet deposition flux at surface')
271+
call addfld (trim(name)//'SFWETC', &
272+
horiz_only, 'A',baseunits//'/m2/s ','Wet deposition flux (convective) at surface')
271273
call addfld (trim(name)//'SFSIC', &
272274
horiz_only, 'A',baseunits//'/m2/s ','Wet deposition flux (incloud, convective) at surface')
273275
call addfld (trim(name)//'SFSIS', &
@@ -666,8 +668,8 @@ subroutine aero_wetdep_tend( state, dt, dlf, cam_out, ptend, pbuf)
666668
call outfld( trim(name)//'SFWET', sflx, pcols, lchnk)
667669
if (ndx>0) aerdepwetcw(:ncol,ndx) = sflx(:ncol)
668670
else
669-
if (.not.convproc_do_aer) call outfld( trim(name)//'SFWET', sflx, pcols, lchnk)
670671
if (ndx>0) aerdepwetis(:ncol,ndx) = aerdepwetis(:ncol,ndx) + sflx(:ncol)
672+
call outfld( trim(name)//'SFWET', aerdepwetis(:ncol,ndx), ncol, lchnk)
671673
end if
672674

673675
sflx(:)=0._r8

0 commit comments

Comments
 (0)