Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

How to add a new namelist to cesm1_2_0

I am running cesm1_2_0 and want to add a new namelist to pop2_in, but I can't add it. As the tutorial says, if we add a new namelist variable to the existing namelist, the best way is using user_nl_pop2. However, how to add a new namelist and define some new variables in the new namelist. Finally, I find a way to do this: I copy a build_namelist and namelist_definition_pop2.xml to src.pop2 and add the new namelist in these two files. It is okay to build and run but some errors appear as following:
build-namelist - ERROR: No default value found for sstf_file_name
user defined attributes:
Died at /WORK/home/LASG30/songfengfei/cesm_script/hist1_ep_5yr/SourceMods/src.pop2/build-namelist line 1875.
ERROR: pop2.buildnml.csh failed
ERROR: /WORK/home/LASG30/songfengfei/cesm_script/hist1_ep_5yr/preview_namelists failed: 25344

Are these warnings of vital? Do you have a betetr way to add a new namelist in the cesm1_2_0.
Any suggestions will be appreciated.
 

hannay

Cecile Hannay
AMWG Liaison
Staff member
If pop2.buildnml.csh failed, it means that you haven't build the namelist. So this is not going to work.


 

santos

Member
I'm not positive how the POP build-namelist works, but I think that, if you are defining entirely new namelist variables, you are probably better making a copy of the source code tree and modifying that code, rather than putting the modifications in SourceMods.
 

njn01

Member
Please see the POP2 FAQ for instructions on how to add a new pop2 namelist with new namelist variables:http://www.cesm.ucar.edu/models/cesm1.2/pop2/doc/faq/#dev_newnamelistFollow steps 1 and 2, then either step 3.1 or 3.2.  I suspect that all you will need to do is step 3.1 in order to get your case to work.You are definitely on the right track with your attempts. I strongly recommend that you make the modifications in your $CASE/SourceMods/src.pop2 directory, as you have done, rather than modifying the pop2 base code.
 
Thanks very much for your reply. This thanks are later for more than one year since I can't log into the forum when I am in China. Now I am a post-doc in the UCSD. With your help, this issue is solved perfectly. 
 
Top