Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the POM installation directory.
cd /path/to/POM/POM2K
- Configure the related files.
- Open the pom2k.f file.
vi pom2k.f
- Press i to enter the edit mode and change mode 1 to 3.
Before the modification:
iproblem=1
After the modification:
iproblem=3
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the pom2k.f file.
- 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 ./
- Modify the runpom2k file.
- Open the runpom2k file.
vi runpom2k
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the runpom2k file.
- Grant the permission to runpom2k and execute it.
chmod 755 runpom2k time ./runpom2k
The following is an example of the command output:

Parent topic: POM POM2K Porting Guide (openEuler 21.03)
