Help needed in porting the CESM v2.2.2 to a centos7-linux machine

Sarin

Sarin
New Member
Hello everyone,
I recently installed the 2.2.2 version of CESM and was trying to run the FHIST simulation using the command
./create_newcase --case test_FHIST --res f09_f09_mg17 --compset FHIST

However, on running the ./case.setup command, I got the error
"ERROR: inputdata root is not a directory or is not readable: /home/aerolab/cesm/inputdata"

Following this thread "ERROR: inputdata root is not a directory" I tried to create the said directory manually in the location. However, the error persists. Thus, I was checking to see if I can download the necessary data using the ./check_input_data command. I made the necessary changes in the config_machines.xml in the cime/config /cesm/machines directory as follows:

<module_system type="module" allow_error="true">
<init_path lang="perl">/usr/share/modules/init/perl.pm</init_path>
<init_path lang="python">/usr/share/modules/init/python.py</init_path>
<init_path lang="csh">/usr/share/modules/init/csh</init_path>
<init_path lang="sh">/usr/share/modules/init/sh</init_path>
<cmd_path lang="perl">/usr/share/modules/modulecmd.tcl perl</cmd_path>
<cmd_path lang="python">/usr/share/modules/modulecmd.tcl python</cmd_path>
<cmd_path lang="sh">/usr/share/modules/modulecmd.tcl sh</cmd_path>
<cmd_path lang="csh">/usr/share/modules/modulecmd.tcl csh</cmd_path>

Following "Porting CESM to a new machine: configuration problem, not using module". However, when I run ./check_input_data again, it shows the error

"ERROR: module command /usr/share/modules/modulecmd.tcl python load compiler/gnu/8.2.0 mpi/3.3/gcc-8.2.0 tool/netcdf/4.6.1/gcc-8.1.0 tool/parallel-netcdf/1.12.1/mpich failed with message:
ERROR: No module path defined"

The paths are all correct and I have verified the existence of these files at said location. However, I cant seem to understand why this error is shown. I would be extremely grateful for any help in this regard. Please do let me know what I can do further or if any further info is required from my side


Sincerely,
Sarin
 

Bing

Bing
New Member
<cmd_path lang="sh">/usr/share/modules/modulecmd.tcl sh</cmd_path>
<cmd_path lang="csh">/usr/share/modules/modulecmd.tcl csh</cmd_path>

changed to (?)

<cmd_path lang="sh">modules</cmd_path>
<cmd_path lang="csh">modules</cmd_path>
 
Vote Upvote 0 Downvote

Sarin

Sarin
New Member
<cmd_path lang="sh">/usr/share/modules/modulecmd.tcl sh</cmd_path>
<cmd_path lang="csh">/usr/share/modules/modulecmd.tcl csh</cmd_path>

changed to (?)

<cmd_path lang="sh">modules</cmd_path>
<cmd_path lang="csh">modules</cmd_path>
I tried both versions. It shows the same error. I was following the 2nd link, and the person somehow got it to work with the first command. Hence why I changed it. The error itself is short, and I might be missing something basic here. But I have spent a lot of time on it and I just cant put a finger on what exactly is wrong
 
Vote Upvote 0 Downvote

Sarin

Sarin
New Member
What is the output of
ls -ltra /home/aerolab/cesm/inputdata ?
The folder is created by me in the particular location and doesnt have any files. I was reading up on it and I found in a guide that the case.setup command automatically downloads the files or we can use ./check_input_data --download for the same. However, both are not working and failing with these errors
 
Vote Upvote 0 Downvote

jedwards

CSEG and Liaisons
Staff member
Do you have MODULEPATH or MODULEPATH_ROOT defined in your environment? I'm not sure that the inputdata and the
modules problems are related but maybe they are...
 
Vote Upvote 0 Downvote

Sarin

Sarin
New Member
Do you have MODULEPATH or MODULEPATH_ROOT defined in your environment? I'm not sure that the inputdata and the
modules problems are related but maybe they are...
I don't have both variables defined in the environment. I have done an echo of both variables in the terminal, and I have attached the results for your reference. Could you please let me know how to set them and what to set them to ? Really looking forward to your response.
a.png
 
Vote Upvote 0 Downvote
Back
Top