Installation of CESM3.0

Budin

Pakistan@123
New Member
Hello,

I am trying to install CESM 3.0 to work on the Community Land Model (CLM) in Linux. Following the guidelines, I cloned the repository using:

git clone GitHub - ESCOMP/CESM: The Community Earth System Model
cd CESM

After cloning, when I attempt to run:
./manage_externals/checkout_externals
I get an error saying that the file does not exist. I have tried cloning multiple times, but the issue persists.

Additionally, I manually cloned the manage_externals repository using:
git clone GitHub - ESMCI/manage_externals: cesm externals management utility

Then, I created the Externals.cfg file with the following content:

[externals_description]
schema_version = 1

[cime]
protocol = git
repo_url = GitHub - ESMCI/cime: Common Infrastructure for Modeling the Earth
branch = main
local_path = cime
required = True

[components]
protocol = git
repo_url = https://github.com/ESCOMP/components.git
branch = main
local_path = components
required = True

However, I am now encountering the following error: list index out of range.

As this is my first time working with CLM or any modeling, I would greatly appreciate any assistance resolving this issue. Additionally, if there are any tutorials, documentation, or other resources related to CLM modeling that you could recommend, I would be grateful for your guidance.



Describe your problem or question:
 

Budin

Pakistan@123
New Member
Instead of manage_externals run
./bin/git-fleximod update after cloning cesm.
Thank you for your guidance.
I have performed the following steps,
1) swelab@swelab:~$ git clone GitHub - ESCOMP/CESM: The Community Earth System Model ~/CESM

2) swelab@swelab:~/CESM$ ./bin/git-fleximod update

3) mkdir -p /home/swelab/CESM/scratch

4) ./create_newcase --case /home/swelab/CESM/scratch/SH3 --mach ubuntu-latest --compset I1850Clm50Sp --res f10_f10_mg37 --run-unsupported

5) ./case.setup

6) ./case.build

However, now when I am trying to build the case, it is giving me the below error. Can you please guide me on how to resolve the below error? Initially I am trying to set the model and later perform simulations. Screenshot 2024-12-10 185102.png
 
Vote Upvote 0 Downvote

Budin

Pakistan@123
New Member
Thank you for your response. I have resolved the above error. However, when I run ./case.build, I encounter a "NetCDF not found" error. I have installed NetCDF and verified the installation using nc-config --all and nf-config --all, which show correct paths. However, I’m unsure how to properly edit config_machines.xml to set the NetCDF paths. Since I am using ubuntu, I couldn’t find standard lines to include. I tried various configurations based on online guides/GPT, but it is giving the error.
Additionally, if I edit config_machines.xml after creating a new case, do I need to repeat steps like ./case.setup --clean and ./case.build?
I’d appreciate any guidance or examples from users who have successfully set up CESM on Ubuntu.
Below are the screenshots of the default config_machines.xml and the error I am encountering.
Screenshot 2024-12-12 151127.png3.png
 
Vote Upvote 0 Downvote

Budin

Pakistan@123
New Member
I looked for the editing guide of the config_machines.xml and tried to edit the config_machine.xml on my side. However, I'm encountering an error, which I am not familiar with. Can you please help me with the error, whether the editing of config_machines.xml is correct? Below is the screenshot of the error and the config_machine.xml in txt.
It gives me an error: Element 'BASELINE_ROOT": This element is not expected. Expected is one of ( Din_LOC_ROOT_CLMFORC, DOUT-S_ROOT) but when I edit, it still gives an error. not only for BASELINE_Root but also for next lines like CCSM_CPRNC and GMAKE.
5.png
 

Attachments

Vote Upvote 0 Downvote
Back
Top