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

Trouble porting CESM2 onto new machine (case.setup fails)

Dear Forum,I'm trying to port CESM version 2.0.0 onto a new machine. I have followed the instructions under http://esmci.github.io/cime/users_guide/porting-cime.html. In particular I have edited and validated the config_*.xml files under ~/.cime. When I try setting up a test case (using case.setup) I get the following error message: The file ~/cesm2_0_0/cime/config/cesm/machines/config_compilers.xml has bad references. Check for circular references or variables that are in a tag but not actually defined.This is also where the test script scripts_regression_tests.py crashes (test case J_TestCreateNewcase), giving the same error message.Thanks in advance for your help.
 

jedwards

CSEG and Liaisons
Staff member
In the file config_compilers.xml if you have a variable $VARNAME that cannot be resolved (has not already been defined elsewhere) you will get this error.   If the variable is defined in the environment you can use $ENV{VARNAME} and if it is only used in the resulting Makefile you can use $(VARNAME).   One of these should solve the problem.
 

jedwards

CSEG and Liaisons
Staff member
In the file config_compilers.xml if you have a variable $VARNAME that cannot be resolved (has not already been defined elsewhere) you will get this error.   If the variable is defined in the environment you can use $ENV{VARNAME} and if it is only used in the resulting Makefile you can use $(VARNAME).   One of these should solve the problem.
 
Top