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

Build cesm1.2 with code modification and newly introduced namelist variables.

Hi,I am running the cesm with the nudging capability to a reanalysis data set.The nudging capability is realized by some source code and some nudge-related namelist variables.The souce code is placed in the src.cam folder and the namelist variables are in user_n_cam.When I tried to preview the namelist, I get an erroe like this: [xlong@yslogin4 nudge_UV300up_20161026]$ ./preview_namelists infile is /glade/scratch/xlong/nudge_UV300up_20161026/Buildconf/cplconf/cesm_namelistCAM build-namelist - ERROR: Invalid namelist variable in '-infile' /glade/scratch/xlong/nudge_UV300up_20161026/Buildconf/camconf/cesm_namelist. ERROR: in _validate_pair (package Build::NamelistDefinition): Variable name nudge_ucoef not found in /glade/p/cesm/releases/cesm1_2_0/models/atm/cam/bld/namelist_files/namelist_definition.xmlERROR: cam.buildnml.csh failed  ---------------------------------------------------------------------------------------  

The nudge-related new namelist variable is definite not in the original namelist_definition.xml file, so cam.buildnml.csh failed.
How can I let the cam.buildnml.csh know the newly introduced namelist variables in the source file in src.cam?
Thanks
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
You can either create a copy of the source code that you can edit the file in the source code. Or I believe you can copy the namelist_definition.xml into your src.cam directory, and that modified version of the file will be used. Try the second option first, and if it doesn't work, you'll have to go to the first solution.
 

islas

Moderator
Staff member
I have encountered the same error when performing nudging experiment. Have you got a solution?

Thanks!
Hi Melody, I forgot to send you the namelist definitions. you'll probably need to use the one I give you as I added some extra things. Will send it via email.
 

kezhoulumelody

Kezhou Lu
New Member
Hi Melody, I forgot to send you the namelist definitions. you'll probably need to use the one I give you as I added some extra things. Will send it via email.
I added corresponding IDs to namelist_definition.xml based on the nudging.F90 following Erik's suggestions. But it would be better to check it with your namelist definitions file. Thanks~~
 
Top