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

./case.setup error in CESM 2.2

Shreya Bhowmick

Shreya Bhowmick
New Member
Hi everyone,

I have ported cesm 1.2.2 in a linux server of my university and I am trying to port CESM2.2 in it. I have changed the config_compilers.xml file as recommended yet while setting up a case I am getting the following error which I cannot figure out.

ERROR: The file /mnt/HDD/MODEL/CESM2/my_cesm_sandbox/cime/config/cesm/machines/config_compilers.xml has bad $VAR references. Check for circular references or variables that are used in a $VAR but not actually defined.

Can anyone help me out with this?

Thanks for your time,
Shreya.
 

Attachments

  • config_compilers.xml.txt
    44.2 KB · Views: 5

jedwards

CSEG and Liaisons
Staff member
Is your machine name "varsha"? Try removing the lines:
<NETCDF_PATH> $(NETCDF_PATH)</NETCDF_PATH>
<PNETCDF_PATH> $(PNETCDF_PATH)</PNETCDF_PATH>

If your system already defines NETCDF_PATH and PNETCDF_PATH you don't need these.
 

Shreya Bhowmick

Shreya Bhowmick
New Member
Hi @jedwards,

Thank you so much. It worked! I am getting a new error in the ./case.build process.
I feel that in the 7th line of the attached file there are 2 slashes which might be wrong. I haven't altered anything in the code except config_compilers.xml and
config_machines.xml file. Could you please help me out with this?
Calling /mnt/HDD/MODEL/CESM2/my_cesm_sandbox/components/cam//cime_config/buildnml

Thank you for your time,
With regards,
Shreya.
 

Attachments

  • build_error.txt
    6.2 KB · Views: 5

jedwards

CSEG and Liaisons
Staff member
The file you need to check for the error is
/mnt/HDD/MODEL/CESM2/my_cesm_sandbox/cime/scripts/mnt/HDD/MODEL/CESM2/SCRATCH/F1850/bld/mct.bldlog.230602-173443

that path looks strange to me, it seems like it should be /mnt/HDD/MODEL/CESM2/SCRATCH/F1850/bld/mct.bldlog.230602-173443
Maybe you should consult a system administrator on why that happened?
 

Shreya Bhowmick

Shreya Bhowmick
New Member
Hi @jedwards

Currently there is no system administrator. The mct-bldlog file suggests that the NETCDF_PATH could not be found. So I mentioned it in the config_compilers.xml and config_machines.xml file. Still it is giving the same issue. CESM1.2.2 is working with the same NETCDF_PATH. Could you please suggest what can be the problem? The machine name is varsha.

Thank you for your time,
Shreya.
 

Attachments

  • mct.bldlog.230603-130426.txt
    1.7 KB · Views: 3
  • config_machines.xml.txt
    118.4 KB · Views: 3
  • config_compilers.xml.txt
    44.2 KB · Views: 3

jedwards

CSEG and Liaisons
Staff member
It's not clear to me what's going on. Have you tried defining NETCDF_PATH in the shell environment before running case.build?
I'm not sure if that will work, but it's worth a try.
 
Top