Compiling and Installing CESM
Prerequisites
Configure an external network so that servers can access the Internet network.
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to decompress the CESM installation package and go to the directory generated after the package is decompressed:
tar -xvf cesm-release-cesm2.1.1.tar.gz cd cesm-release-cesm2.1.1
- Run the following command to install environment-modules, git, and svn:
yum install git svn environment-modules -y
- Run the following command to add verification information:
svn ls https://svn-ccsm-models.cgd.ucar.edu/ww3/release_tags
- Run the following command to install other CESM components:
./manage_externals/checkout_externals
- Run the following command to check the component installation: (If the following information is displayed, the installation is successful.)
./manage_externals/checkout_externals -S
Processing externals description file : Externals.cfg Processing externals description file : Externals_CLM.cfg Processing externals description file : Externals_POP.cfg Processing externals description file : Externals_CISM.cfg Checking status of externals: clm, fates, ptclm, mosart, ww3, cime, cice, pop, cvmix, marbl, cism, source_cism, rtm, cam, ./cime ./components/cam ./components/cice ./components/cism ./components/cism/source_cism ./components/clm ./components/clm/src/fates ./components/clm/tools/PTCLM ./components/mosart ./components/pop ./components/pop/externals/CVMix ./components/pop/externals/MARBL ./components/rtm ./components/ww3
- Run the following command to modify the config_machines.xml file:
- Open the config_machines.xml file.
vi cime/config/cesm/machines/config_machines.xml
- Press i to enter the insert mode and modify lines 153, 170, 171, and 176 in the config_machines.xml file. Pay attention to the information in bold.
153 <NODENAME_REGEX>node1</NODENAME_REGEX> 170 <MAX_TASKS_PER_NODE>96</MAX_TASKS_PER_NODE> 171 <MAX_MPITASKS_PER_NODE>96</MAX_MPITASKS_PER_NODE> 176 <arg name="ntasks"> --allow-run-as-root --mca btl ^openib -np {{ total_tasks }} </arg>
In the preceding command, node1 indicates the host name of the current node, and 96 indicates the number of running processes. Replace them with actual values.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the config_machines.xml file.
Parent topic: CESM 2.1.1 Porting Guide (CentOS 7.6)