Skip to content

Commit 72a2987

Browse files
authored
Merge pull request #975 from ekluzek/rel2300ext
Fix irrigation for 2300 extensions
2 parents 8e1309a + a8b720c commit 72a2987

File tree

8 files changed

+119
-19
lines changed

8 files changed

+119
-19
lines changed

bld/namelist_files/namelist_defaults_clm4_5.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ attributes from the config_cache.xml file (with keys converted to upper-case).
112112
<irrigate use_crop=".true." phys="clm5_0" use_cndv=".false." sim_year_range="1850-2100">.true.</irrigate>
113113
<irrigate use_crop=".true." phys="clm5_0" use_cndv=".true." sim_year_range="1850-2100">.false.</irrigate>
114114
<irrigate use_crop=".true." phys="clm4_5" sim_year_range="1850-2100">.false.</irrigate>
115+
<irrigate use_crop=".true." phys="clm5_0" use_cndv=".false." sim_year_range="2100-2300">.true.</irrigate>
116+
<irrigate use_crop=".true." phys="clm5_0" use_cndv=".true." sim_year_range="2100-2300">.false.</irrigate>
117+
<irrigate use_crop=".true." phys="clm4_5" sim_year_range="2100-2300">.false.</irrigate>
115118

116119
<irrigate use_crop=".true." >.false.</irrigate>
117120
<irrigate use_crop=".false.">.true.</irrigate>

doc/ChangeSum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Tag Who Date Summary
22
============================================================================================================================
3+
release-clm5.0.33 erik 04/07/2020 Turn irrigation on for 2300 SSP extensions
34
release-clm5.0.32 erik 04/02/2020 Extensions to 2300 for SSP5-8.5,SSP5-3.4, and SSP1-2.6
45
release-clm5.0.31 erik 03/29/2020 Bring in raw datasets for 2100-2300 extension for SSP5-8.5/3.5 and SSP1-2.6, some other misc. changes
56
release-clm5.0.30 erik 01/21/2020 Update FATES to sci.1.30.0_api.8.0.0

doc/release-clm5.0.ChangeLog

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,95 @@
11
===============================================================
2+
Tag name: release-clm5.0.33
3+
Originator(s): erik (Erik Kluzek)
4+
Date: Tue Apr 7 13:21:28 MDT 2020
5+
One-line Summary: Turn irrigation on for 2300 SSP extensions
6+
7+
Purpose of this version:
8+
------------------------
9+
10+
Irrigation was turned off for the 2300 extensions. This turns it on. Also add SSP2-4.5 to the
11+
anomaly forcing script.
12+
13+
CTSM Master Tag This Corresponds To: ctsm1.0.dev025 (with many other changes)
14+
15+
Summary of changes:
16+
-------------------
17+
18+
Issues fixed (include CTSM Issue #): #974 #972 #966
19+
#974 -- Python3 problem in SSP test
20+
#972 -- Irrigate is turned off for the 2300 extensions
21+
#966 -- Units for a few history fields needs to change for ILAMB
22+
23+
Science changes since: release-clm5.0.32
24+
Irrigation is now properly turned on for the 2100-2300 SSP extensions
25+
Change some units of history fields
26+
27+
Software changes since: release-clm5.0.32
28+
Anomaly forcing script can now do SSP2-4.5
29+
Small changes to anomoly forcing script and singlept script
30+
31+
Changes to User Interface since: release-clm5.0.32
32+
33+
Testing:
34+
--------
35+
36+
[PASS means all tests PASS and OK means tests PASS other than expected fails.]
37+
38+
build-namelist tests:
39+
40+
cheyenne - PASS (two tests are different than before because of irrigate)
41+
42+
unit-tests (components/clm/src):
43+
44+
cheyenne - PASS
45+
46+
tools-tests (components/clm/test/tools): None
47+
48+
PTCLM testing (components/clm/tools/shared/PTCLM/test): None
49+
50+
regular tests (aux_clm):
51+
52+
cheyenne_intel ---- OK
53+
cheyenne_gnu ------ OK
54+
izumi_nag --------- PASS
55+
izumi_pgi --------- PASS
56+
izumi_intel ------- PASS
57+
58+
Summary of Answer changes:
59+
-------------------------
60+
61+
If the tag used for baseline comparisons was NOT the previous tag, note that here: previous
62+
63+
Changes answers relative to baseline:
64+
65+
Summarize any changes to answers, i.e.,
66+
- what code configurations:
67+
- what platforms/compilers: All
68+
- nature of change: Climate changing as irrigation is on
69+
70+
Will new REFCASES need to be made for cesm and/or CAM?: No
71+
(This will likely be true if the LII tests failed)
72+
73+
Detailed list of changes:
74+
------------------------
75+
76+
Externals being used: No updates
77+
78+
cism: cism-release-cesm2.1.2_04
79+
rtm: release-cesm2.0.04
80+
mosart: release-cesm2.0.04
81+
cime: cim5.6.33
82+
FATES: sci.1.30.0_api.8.0.0
83+
PTCLM: PTCLM2_20200121
84+
85+
CTSM Tag versions pulled over from master development branch: None
86+
87+
Pull Requests that document the changes (include PR ids): #975
88+
(https://github.com/ESCOMP/ctsm/pull)
89+
#975 -- fix irrigate for 2300 extensions
90+
91+
===============================================================
92+
===============================================================
293
Tag name: release-clm5.0.32
394
Originator(s): erik (Erik Kluzek)
495
Date: Thu Apr 2 00:23:04 MDT 2020

src/biogeochem/CNVegStateType.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,17 +321,17 @@ subroutine InitHistory(this, bounds)
321321
ptr_col=this%nfire_col)
322322

323323
this%farea_burned_col(begc:endc) = spval
324-
call hist_addfld1d (fname='FAREA_BURNED', units='proportion/sec', &
324+
call hist_addfld1d (fname='FAREA_BURNED', units='s-1', &
325325
avgflag='A', long_name='timestep fractional area burned', &
326326
ptr_col=this%farea_burned_col)
327327

328328
this%baf_crop_col(begc:endc) = spval
329-
call hist_addfld1d (fname='BAF_CROP', units='proportion/sec', &
329+
call hist_addfld1d (fname='BAF_CROP', units='s-1', &
330330
avgflag='A', long_name='fractional area burned for crop', &
331331
ptr_col=this%baf_crop_col)
332332

333333
this%baf_peatf_col(begc:endc) = spval
334-
call hist_addfld1d (fname='BAF_PEATF', units='proportion/sec', &
334+
call hist_addfld1d (fname='BAF_PEATF', units='s-1', &
335335
avgflag='A', long_name='fractional area burned in peatland', &
336336
ptr_col=this%baf_peatf_col)
337337

src/biogeophys/PhotosynthesisMod.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,30 +360,30 @@ subroutine InitHistory(this, bounds)
360360
! Don't output photosynthesis variables when FATES is on as they aren't calculated
361361
if (.not. use_fates) then
362362
this%fpsn_patch(begp:endp) = spval
363-
call hist_addfld1d (fname='FPSN', units='umol/m2s', &
363+
call hist_addfld1d (fname='FPSN', units='umol m-2 s-1', &
364364
avgflag='A', long_name='photosynthesis', &
365365
ptr_patch=this%fpsn_patch, set_lake=0._r8, set_urb=0._r8)
366366

367367
! Don't by default output this rate limiting step as only makes sense if you are outputing
368368
! the others each time-step
369369
this%fpsn_wc_patch(begp:endp) = spval
370-
call hist_addfld1d (fname='FPSN_WC', units='umol/m2s', &
370+
call hist_addfld1d (fname='FPSN_WC', units='umol m-2 s-1', &
371371
avgflag='I', long_name='Rubisco-limited photosynthesis', &
372372
ptr_patch=this%fpsn_wc_patch, set_lake=0._r8, set_urb=0._r8, &
373373
default='inactive')
374374

375375
! Don't by default output this rate limiting step as only makes sense if you are outputing
376376
! the others each time-step
377377
this%fpsn_wj_patch(begp:endp) = spval
378-
call hist_addfld1d (fname='FPSN_WJ', units='umol/m2s', &
378+
call hist_addfld1d (fname='FPSN_WJ', units='umol m-2 s-1', &
379379
avgflag='I', long_name='RuBP-limited photosynthesis', &
380380
ptr_patch=this%fpsn_wj_patch, set_lake=0._r8, set_urb=0._r8, &
381381
default='inactive')
382382

383383
! Don't by default output this rate limiting step as only makes sense if you are outputing
384384
! the others each time-step
385385
this%fpsn_wp_patch(begp:endp) = spval
386-
call hist_addfld1d (fname='FPSN_WP', units='umol/m2s', &
386+
call hist_addfld1d (fname='FPSN_WP', units='umol m-2 s-1', &
387387
avgflag='I', long_name='Product-limited photosynthesis', &
388388
ptr_patch=this%fpsn_wp_patch, set_lake=0._r8, set_urb=0._r8, &
389389
default='inactive')

src/biogeophys/WaterfluxType.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ subroutine InitHistory(this, bounds)
475475
ptr_patch=this%qflx_evap_veg_patch, default='inactive', c2l_scale_type='urbanf')
476476

477477
this%qflx_evap_tot_patch(begp:endp) = spval
478-
call hist_addfld1d (fname='QFLX_EVAP_TOT', units='mm H2O/s', &
478+
call hist_addfld1d (fname='QFLX_EVAP_TOT', units='kg m-2 s-1', &
479479
avgflag='A', long_name='qflx_evap_soi + qflx_evap_can + qflx_tran_veg', &
480480
ptr_patch=this%qflx_evap_tot_patch, c2l_scale_type='urbanf')
481481

tools/contrib/singlept

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ datm_eyr=2014
116116
#-- Modify landunit structure
117117
overwrite_single_pft = True
118118
dominant_pft = 7 #BETr
119-
zero_nonveg_pfts = True
119+
zero_nonveg_landunits= True
120120
uniform_snowpack = True
121121
no_saturation_excess = True
122122

@@ -204,7 +204,7 @@ if create_surfdata:
204204
if overwrite_single_pft:
205205
f3['PCT_NAT_PFT'][:,:,:] = 0
206206
f3['PCT_NAT_PFT'][:,:,dominant_pft] = 100
207-
if zero_nonveg_pfts:
207+
if zero_nonveg_landunits:
208208
f3['PCT_NATVEG'][:,:] = 100
209209
f3['PCT_CROP'][:,:] = 0
210210
f3['PCT_LAKE'][:,:] = 0.
@@ -233,7 +233,7 @@ if create_surfdata:
233233
f1.to_netcdf(path='~/junk.nc', mode='w')
234234
#f1.to_netcdf(path=fsurf2, mode='w')
235235
f1.close()
236-
if zero_nonveg_pfts:
236+
if zero_nonveg_landunits:
237237
#f1 = xr.open_dataset(fsurf2)
238238
f1 = xr.open_dataset('~/junk.nc')
239239
f1['PCT_NATVEG'] = 100

tools/contrib/ssp_anomaly_forcing_smooth

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This script creates CLM anomaly forcing data
5252

5353
print( "Create anomoly forcing data that can be used by CTSM in CESM" )
5454
# Input and output directories make sure they exist
55-
datapath = "/glade/p/cesm/sdwg_dev/thesis/data/cesm_tools/anomalyforcing" # Path on cheyenne
55+
datapath = "/glade/p/cgd/tss/historyfiles/" # Path on cheyenne
5656
spath = './'
5757
if ( os.path.exists(datapath) ):
5858
print( "Input data directory:"+datapath )
@@ -67,24 +67,29 @@ else:
6767
today = datetime.date.today()
6868
creationdate = "_c"+today.strftime( "%Y%m%d" )
6969
historydate = today.strftime( "%a %b %d %Y" )
70-
sspnum = 3
70+
sspnum = 4
7171
smoothsize = 5
7272

73+
hist_case = 'b.e21.BHIST.f09_g17.CMIP6-historical.010'
74+
7375
if sspnum == 1:
7476
# SSP1-26
7577
ssptag = 'SSP1-2.6'
76-
hist_case = 'b.e21.BHIST.f09_g17.CMIP6-historical.010'
7778
fut_case = 'b.e21.BSSP126cmip6.f09_g17.CMIP6-SSP1-2.6.001'
78-
if sspnum == 2:
79+
elif sspnum == 2:
7980
# SSP3-70
8081
ssptag = 'SSP3-7.0'
81-
hist_case = 'b.e21.BHIST.f09_g17.CMIP6-historical.010'
8282
fut_case = 'b.e21.BSSP370cmip6.f09_g17.CMIP6-SSP3-7.0.001'
83-
if sspnum == 3:
83+
elif sspnum == 3:
8484
# SSP5-85
8585
ssptag = 'SSP5-8.5'
86-
hist_case = 'b.e21.BHIST.f09_g17.CMIP6-historical.010'
8786
fut_case = 'b.e21.BSSP585cmip6.f09_g17.CMIP6-SSP5-8.5.001'
87+
elif sspnum == 4:
88+
# SSP2-45
89+
ssptag = 'SSP2-4.5'
90+
fut_case = 'b.e21.BSSP245cmip6.f09_g17.CMIP6-SSP2-4.5.001'
91+
else:
92+
sys.exit( "sspnum is out of range: "+sspnum )
8893

8994
sspoutdir = 'anomaly_forcing/CMIP6-'+ssptag
9095

@@ -121,7 +126,7 @@ futnm = nmo*fut_nyrs
121126
totnm = nmo*tot_nyrs
122127
outnm = nmo*fut_nyrs
123128

124-
dpath = datapath + '/historyfiles/'
129+
dpath = datapath
125130
dfile = '/lnd/proc/tseries/month_1/'
126131
hdir = dpath+hist_case+dfile
127132
fdir = dpath+fut_case+dfile

0 commit comments

Comments
 (0)