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

ERROR when running CESM1.0.3 : LID: Undefined variable.

wilma wang

Wilma Wang
New Member
Dear all,

I would like to run a E1850C5 of CESM 1.0.3 for test. Then i run the code as following:
Code:
./create_newcase -case /home/bozk/Models/cesm1_0_3/case/E1850C5.T42_T42 -mach new_intel -compset E1850C5 -res T42_T42

The case seems to build successfully, but I encountered the following error when i submitted the case:
Code:
LID: Undefined variable.

I check the run/, there is not any xxx.log.
Look forward to any useful suggestion.

Best regards,
Wilma.Wang
 

AndrewLowry

Andrew Lowry
New Member
Hi Wilma, I am not from NCAR, but have just recently ported cesm1.2 to my local machine and had to resolve similar issues to yours, so hope the below helps.
LID is the environment variable that gives the date-timestamp that is appended log files, e.g. cesm.log.${LID} becomes cesm.log.250713-053737.
When you invoke ./cesm_setup this creates the file ${casename}.run. As part of that process cesm_setup calls cesm_prerun_setup and at line #39 you will see how the environment variable LID is created.
To check cesm_setup worked correctly look in ${casename}.run and the setting of the environment variable LID should be there, in my file around line #80.
To provide any further advice, you should attach your versions of ${casename}.run, mkbatch.${mach}
If you have modified any other files relating to creation and setup of a case, perhaps attach them also.
 
Vote Upvote 0 Downvote

wilma wang

Wilma Wang
New Member
Hi Wilma,

Is there a reason you need to use CESM 1.0.3? I apologize that we are no longer able to provide support for CESM1; we encourage you to update to the CESM2 series. See Support Policy | Community Earth System Model for support details.

Courtney
Hi Courtney,
My situation is a little bit complex. Simply, one of my boss asked me to run some sensitivity experiment using CESM 1.0.3. I am also trying to update to the CESM2. Thanks for your reply.
 
Vote Upvote 0 Downvote

wilma wang

Wilma Wang
New Member
Hi Wilma, I am not from NCAR, but have just recently ported cesm1.2 to my local machine and had to resolve similar issues to yours, so hope the below helps.
LID is the environment variable that gives the date-timestamp that is appended log files, e.g. cesm.log.${LID} becomes cesm.log.250713-053737.
When you invoke ./cesm_setup this creates the file ${casename}.run. As part of that process cesm_setup calls cesm_prerun_setup and at line #39 you will see how the environment variable LID is created.
To check cesm_setup worked correctly look in ${casename}.run and the setting of the environment variable LID should be there, in my file around line #80.
To provide any further advice, you should attach your versions of ${casename}.run, mkbatch.${mach}
If you have modified any other files relating to creation and setup of a case, perhaps attach them also.
Hi Andrew,
Thanks for your reply. You are right. There are still something wrong in my mkbatch.${mach} file. I need to recheck it and try again. By the way, what is the specific version of CESM1.2 that you ported? I also try to run CESM1.2.2, but I can't build it since the source code of CESM1.2.2 that I downloaded is lack of /models/utils/pio. Anyway, thanks a lot!
Wilma W.
 
Vote Upvote 0 Downvote

wilma wang

Wilma Wang
New Member
Hi Wilma, I ported CESM1.2.2. There are a few links in the svn checkout list that refer to code elsewhere and those repositories have moved over time. To get pio (and other missing software) I used the following post, which explains everything well: cesm1.2.2 installation
There was also a problem with old code syntax, explained in error in producing namelist
Hope that helps nudge you along.
Hi Andrew,
Thanks for your comments again. They are very helpful. I will try these solutions later.
cheers
Wilma W
 
Vote Upvote 0 Downvote
Top