Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the POM installation directory.
    cd /path/to/POM/POM2K
  3. Configure the related files.
    1. Open the pom2k.f file.
      vi pom2k.f
    2. Press i to enter the edit mode and change mode 1 to 3.

      Before the modification:

      iproblem=1

      After the modification:

      iproblem=3
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Copy the header file gridcom in the installation package and the IC.dat file generated using the IC data to the current directory.
    cp /path/to/POM/GRID-DATA/IC/include/gridcom ./
    cp /path/to/POM/GRID-DATA/IC/IC.dat ./
  5. Modify the runpom2k file.
    1. Open the runpom2k file.
      vi runpom2k
    2. Press i to enter the edit mode.

      Add # at the beginning of lines 13 to 17 to comment out the lines.

      Delete # at the beginning of lines 21 to 25 to uncomment the lines.

      Add # at the beginning of line 37 to comment out the line.

      Change line 32 to the following content:

      flang -O3 pom2k.f /path/to/NETCDF/lib/libnetcdf.a -I/path/to/NETCDF/lib

      After performing 5.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Grant the permission to runpom2k and execute it.
    chmod 755 runpom2k
    time ./runpom2k

    The following is an example of the command output: