Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing CESM

Prerequisites

Configure an external network so that servers can access the Internet network.

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. Run the following command to install environment-modules, git, and svn:
    yum install git svn environment-modules -y
  4. Run the following command to add verification information:
    svn ls https://svn-ccsm-models.cgd.ucar.edu/ww3/release_tags
  5. Run the following command to install other CESM components:
    ./manage_externals/checkout_externals
  6. 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
  7. Run the following command to modify the config_machines.xml file:
    1. Open the config_machines.xml file.
      vi cime/config/cesm/machines/config_machines.xml
    2. 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.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.