Running and Verification
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to create and go to the working directory:
mkdir /path/to/WW3_TEST cd /path/to/WW3_TEST
- Download the test case and copy it to the /path/to/WW3_TEST directory.
- Run the following commands to decompress the package:
tar -xvf ww3_from_ftp.v6.07.tar.gz cd cases
- Run the following commands to set environment variables:
source /path/to/WAVEWATCH/WW3-6.07.1/env_ww3.sh export ww3_dir=/path/to/WAVEWATCH/WW3-6.07.1/model
- Run the following commands to modify the mww3_case_01 file:
- Open mww3_case_01.
vi mww3_case_01
- Press i to enter the insert mode and modify the file as follows:
Line 61:
#cd /scratch1/portfolios/NCEPDEV/ocean/noscrub/Henrique.Alves/WW3_CASES/cases
Line 65:#module load intel mpt grads
Line 72:compstr="Gnu"
Line 143:#ww3_dir='echo $case_dir | sed 's/\/cases\/*//g''
Line 138:proc=96
Line 420:mpirun --allow-run-as-root --mca btl ^openib -np $proc --hostfile /path/to/WW3_TEST/hostfile $path_e/ww3_multi
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open mww3_case_01.
- Run the following command to create a host file:
- Create host.
vi hostfile
- Press i to enter the insert mode and add the following content:
node1 node2
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create host.
- Open another login window and use PuTTY to log in to node 2 as the root user.
- On node 2, run the following command to configure environment variables:
- Open .bashrc.
vi /root/.bashrc
- Press i to enter the insert mode, and add the following content to the end of the .bashrc file:
export PATH=/path/to/GNU/bin:/path/to/OPENMPI/bin:$PATH export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open .bashrc.
- On node 1, run the following command to start the WAVEWATCH III program:
./mww3_case_01
If the information shown in Figure 1 is displayed when the WAVEWATCH III program is complete, the WAVEWATCH III program is running properly.Check the value of Elapsed time in the work_case_01/log.mww3 log file. The unit is second. A smaller value indicates better performance.
Figure 2 shows the command output.
Parent topic: WAVEWATCH III 6.07.1 Porting Guide (CentOS 7.6)

