---
title: 运行和验证
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengnemo_02_0013.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengnemo_02_0013.html
indexId: 3c8af05c60c8dcaaf07cebcecc486720699c734c7c6d7565a82eb865a7a7defa66
---
# 运行和验证

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令进入工作路径。

```
cd
/path/to/NEMO
/NEMO/releases/release-3.6/NEMOGCM/CONFIG/MY_AMM12/EXP00
```


3. 上传“AMM12_v3.6.tar”到“/path/to/NEMO/NEMO/releases/release-3.6/NEMOGCM/CONFIG/MY_AMM12/EXP00”。
4. 执行以下命令进行解压。

```
tar xf 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
```


5. 执行以下命令创建“host”文件。

  a. 创建“host”文件。

```
vi hostfile
```


  b. 按“i”进入编辑模式，新增如下内容。

```
node1
node2
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
6. 执行以下命令运行NEMO程序。

```
{ time mpirun  --allow-run-as-root -np 192 -N 96 -hostfile hostfile --mca btl ^openib  ./opa ; } 2>&1 | tee -a NEMO.log
```


**表1 参数说明**

| 参数 | 说明 |
| --- | --- |
| \-np | 测试使用的总进程数。 |
| \-N | 每个服务器上运行的进程数。 |
| \-\-hostfile | 使用的节点名字。 |


  当NEMO生成的日志“ocean.output”的结尾处出现如图1所示内容时，表示NEMO程序运行正常结束。

  图1 测试样例

  需要查看“NEMO.log”日志中的“real”数值，单位是s，数值越高性能越低，输出的结果如图2所示。

  图2 测试样例
