I am trying to run a stand-alone case of CLM with datm (Qian data atmosphere) and including transient atmospheric CO2 data. There is documentation on how to do this in the CLM manual, but the documentation assumes a structure of the datm.buildnml file that is no longer valid (these files are now completely different in later CESM versions).
I am using the I_1850-2000_CN component set, adn I make these updates for CLM to take diagnostic CO2 from the atmosphere:# Set CCSM_BGC to CO2A so that CO2 will be passed from atmosphere to land
./xmlchange -file env_run.xml -id CCSM_BGC -val CO2A
# Set CLM_CO2_TYPE to diagnostic so that the land will use the value sent from the atmosphere
./xmlchange -file env_run.xml -id CLM_CO2_TYPE -val diagnostic
This automatically puts namelist updates in the user_nl_datm file to include updates for the CO2 data streams:
dtlimit = 1.5,1.5,1.5,1.5,1.5
fillalgo = 'nn','nn','nn','nn','nn'
fillmask = 'nomask','nomask','nomask','nomask','nomask'
mapalgo = 'bilinear','bilinear','bilinear','bilinear','nn'
mapmask = 'nomask','nomask','nomask','nomask','nomask'
streams = "datm.streams.txt.CLM_QIAN.Solar 1 1954 2004 ", "datm.streams.txt.CLM_QIAN.Precip 1 1954 2004 ",
"datm.streams.txt.CLM_QIAN.TPQW 1 1954 2004 ", "datm.streams.txt.presaero.clim_2000 1 1 1",
"/glade/p/cesm/cseg/collections/cesm1_1_1/models/lnd/clm/doc/UsersGuide/co2_streams.txt 1 1954 2004 "
taxmode = 'cycle','cycle','cycle','cycle','cycle'
tintalgo = 'coszen','nearest','linear','linear','linear'
When I try to run, I get the following error:(shr_stream_init) ERROR: unexpected end-of-file while reading
(shr_stream_init) error code = ^]^@^@^@
(shr_sys_abort) ERROR: (shr_stream_init) ERROR: unexpected end-of-file
I have tried including the co2_streams.txt file in the Buildconf/datmconf/ directory, and also tried copyng it to the name given in the old documentation ( ), and renaming the file in the streams field of the above namelist update. I have also tried copying the co2 streams file (and its alternatively named copy) directly to the run directory. I get the same error.Is there new docuementation available on adding CO2 with the updated file structure?Or has anyone successfully done this? It looks like it should be quite simple. I think the problem is finding out which filename the datm model is expecting for the co2 streams file - I have happy to copy the file manually for now if it has the correct name!Thanks for any help!
Steve.
I am using the I_1850-2000_CN component set, adn I make these updates for CLM to take diagnostic CO2 from the atmosphere:# Set CCSM_BGC to CO2A so that CO2 will be passed from atmosphere to land
./xmlchange -file env_run.xml -id CCSM_BGC -val CO2A
# Set CLM_CO2_TYPE to diagnostic so that the land will use the value sent from the atmosphere
./xmlchange -file env_run.xml -id CLM_CO2_TYPE -val diagnostic
This automatically puts namelist updates in the user_nl_datm file to include updates for the CO2 data streams:
dtlimit = 1.5,1.5,1.5,1.5,1.5
fillalgo = 'nn','nn','nn','nn','nn'
fillmask = 'nomask','nomask','nomask','nomask','nomask'
mapalgo = 'bilinear','bilinear','bilinear','bilinear','nn'
mapmask = 'nomask','nomask','nomask','nomask','nomask'
streams = "datm.streams.txt.CLM_QIAN.Solar 1 1954 2004 ", "datm.streams.txt.CLM_QIAN.Precip 1 1954 2004 ",
"datm.streams.txt.CLM_QIAN.TPQW 1 1954 2004 ", "datm.streams.txt.presaero.clim_2000 1 1 1",
"/glade/p/cesm/cseg/collections/cesm1_1_1/models/lnd/clm/doc/UsersGuide/co2_streams.txt 1 1954 2004 "
taxmode = 'cycle','cycle','cycle','cycle','cycle'
tintalgo = 'coszen','nearest','linear','linear','linear'
When I try to run, I get the following error:(shr_stream_init) ERROR: unexpected end-of-file while reading
(shr_stream_init) error code = ^]^@^@^@
(shr_sys_abort) ERROR: (shr_stream_init) ERROR: unexpected end-of-file
I have tried including the co2_streams.txt file in the Buildconf/datmconf/ directory, and also tried copyng it to the name given in the old documentation ( ), and renaming the file in the streams field of the above namelist update. I have also tried copying the co2 streams file (and its alternatively named copy) directly to the run directory. I get the same error.Is there new docuementation available on adding CO2 with the updated file structure?Or has anyone successfully done this? It looks like it should be quite simple. I think the problem is finding out which filename the datm model is expecting for the co2 streams file - I have happy to copy the file manually for now if it has the correct name!Thanks for any help!
Steve.