Running and Verification
- Determine the number of running processes based on the server configuration.
- If multiple nodes are running, configure the network environment:
- In the /etc/hosts file, add the IP addresses and host names of the servers.
- Enable password-free SSH login between the servers.
- Disable the firewall and ensure that clients and servers are not disconnected.
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the working directory.
cd /path/to/NEMO/NEMO/releases/release-3.6/NEMOGCM/CONFIG/MY_AMM12/EXP00
- Upload AMM12_v3.6.tar to /path/to/NEMO/NEMO/releases/release-3.6/NEMOGCM/CONFIG/MY_AMM12/EXP00.
- Decompress the file.
tar -vxf AMM12_v3.6.tar gunzip *.gz */*.gz rm domain_def.xml field_def.xml namelist_ref -f ln -s ../../SHARED/domain_def.xml ./domain_def.xml ln -s ../../SHARED/field_def.xml ./field_def.xml ln -s ../../SHARED/namelist_ref ./namelist_ref
- Create a host file.
- Create a host file.
vi hostfile
- Press i to enter the edit mode and add the following content:
node1 node2
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create a host file.
- Start the NEMO program.
{ time mpirun --allow-run-as-root -np 16 -N 8 -hostfile hostfile --mca btl ^openib ./opa ; } 2>&1 | tee -a NEMO.logTable 1 Parameter description Parameter
Description
-np
Total number of processes used in the test.
-N
Number of processes running on each server.
--hostfile
Name of the node to be used.
If you want to run the program on a single node, delete the --hostfile parameter.
If the information shown in the following figure is displayed at the end of the ocean.output log generated by NEMO, the NEMO program stops normally.

Check the value of real (unit: s) in the NEMO.log file. A larger value indicates lower performance.
Parent topic: NEMO 3.6 Porting Guide (openEuler 21.03)