Changed soil moisture boundary condition, case build failed

Status
Not open for further replies.

maruf2812

Montasir Maruf
Member
What version of the code are you using?
- CESM 2.1.5


Have you made any changes to files in the source tree?
- To change soil moisture boundary condition I added the following line in the /glade/u/home/maruf/my_cesm_sandbox_v6/components/clm/bld/namelist_files:
<entry id="fsoidat" type="char*256" category="datasets"
input_pathname="abs" group="clm_inparm" valid_values="" >
Full pathname of soil moisture data file.
</entry>

And then added the following line in user_nl_clm:
&clm_inparm
finidat = '/glade/work/kumar34/prj_data/CLM45_BGC_OFFLINE_INIT10_rest/1971-01-01-00000/CLM45_BGC_OFFLINE_INIT10.clm2.r.1971-01-01-00000.nc'
fsoidat = '/glade/work/kumar34/GLEW-OBS-ANA/LC_AMIP_OBS_e029/LC_AMIP_OBS_e029.soil_LIH.monthly.198101-201012_climo.nc'
But the case build failed. I have attached the screenshot. My case directory: /glade/u/home/maruf/DL_AMIP_OBS_e029HLI_daily_v26

Screenshot 2024-10-28 212128.jpg


Describe every step you took leading up to the problem:
- I have gone through the forum but did not find anything relevant.


Describe your problem or question:
My case build is failing after changing some lines in the source code and I have added F90 files in SourceMods/src.clm directory. I was wondering what could be the reason for this case build failure.
 

fischer

CSEG and Liaisons
Staff member
Hi Montasir,

You have introduced a circular dependency between clm_varctl.F90 and clm_varpar.F90. Also, looking at your clm_varctl.F90 modifications, it is significantly different than the version in CESM 2.1.5. Are you sure your modified clm code is from the clm version in cesm2.1.5?

Chris

 
Vote Upvote 0 Downvote

maruf2812

Montasir Maruf
Member
Hi @fischer, actually I copied it from CESM1.2.2 version. If I want to set the soil moisture boundary condition in CESM 2.1.5 using the file (I added in user_nl_clm), what would be the best option?

Thank you!
 
Vote Upvote 0 Downvote

oleson

Keith Oleson
CSEG and Liaisons
Staff member
I'm not really sure what you are trying to do, but there is a soil moisture stream capability in release-cesm2.1.5, invoked using:

use_soil_moisture_streams
 
Vote Upvote 0 Downvote

maruf2812

Montasir Maruf
Member
Thank you @oleson for your reply! Actually I need to set the following file as a boundary condition: /glade/work/kumar34/GLEW-OBS-ANA/LC_AMIP_OBS_e029/LC_AMIP_OBS_e029.soil_LIH.monthly.198101-201012_climo.nc

Do I need to add 'use_soil_moisture_streams' in my user_nl_clm and then the file location?
 
Vote Upvote 0 Downvote

maruf2812

Montasir Maruf
Member
I have added the following lines in my user_nl_clm:

use_soil_moisture_streams = .true.
stream_fldfilename_soilm = '/glade/work/kumar34/GLEW-OBS-ANA/LC_AMIP_OBS_e029/LC_AMIP_OBS_e029.soil_LIH.monthly.198101-201012_climo.nc'
hist_fincl2 = "H2OSOI"
hist_mfilt(2) = 365
hist_nhtfrq(2) = -24

But the run fails after submitting the case.

Case directory: /glade/u/home/maruf/DL_AMIP_OBS_e029HLI_daily_v27
 
Vote Upvote 0 Downvote

oleson

Keith Oleson
CSEG and Liaisons
Staff member
It looks like you are missing a units attribute on your time variable in that file.
The example file provided is:

/glade/campaign/cesm/cesmdata/inputdata/lnd/clm2/prescribed_data/LFMIP-pdLC-SST.H2OSOI.0.9x1.25.20levsoi.natveg.climo1980-2014.MONS_c190709.nc

The file has H2OSOI in it.
 
Vote Upvote 1 Downvote

maruf2812

Montasir Maruf
Member
Thank you @oleson for your reply! I have added the following file which has H2OSOI in that: /glade/work/kumar34/GLEW-OBS-ANA/LC_AMIP_OBS_e029/LC_AMIP_OBS_e029.H2OSOI.monthly.197101-201412.nc

But still the run is failing.
 
Vote Upvote 0 Downvote

oleson

Keith Oleson
CSEG and Liaisons
Staff member
I think there is something wrong with the time variable in that new file. The time is going backwards at some point:

15511, 15542, 15573, 15603, 15634, 15664, 15695, 15726, 15754, 15785,
15815, 15846, 15876, 15907, 15938, 15968, 15999, 16029, 16060, 31, 59,
90, 120, 151, 181, 212, 243, 273, 304, 334, 365, 396, 424, 455, 485, 516,
546, 577, 608, 638, 669, 699, 730, 761, 789, 820, 850, 881, 911, 942,
973, 1003, 1034, 1064, 1095, 1126, 1154, 1185, 1215, 1246, 1276, 1307,
1338, 1368, 1399, 1429, 1460, 1491, 1519, 1550, 1580, 1611, 1641, 1672,
1703, 1733, 1764, 1794, 1825, 1856, 1884, 1915, 1945, 1976, 2006, 2037,
2068, 2098, 2129, 2159, 2190, 2221, 2249, 2280, 2310, 2341, 2371, 2402,

There is an indication of this in the cesm log:

dec1225.hsn.de.hpc.ucar.edu 0: ERROR: (shr_stream_verifyTCoord) ERROR: calendar dates must be increasing
 
Vote Upvote 1 Downvote
Status
Not open for further replies.
Back
Top