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

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令创建测试目录。

```
mkdir -p
/path/to/FVCOM/test
cd
/path/to/FVCOM/test
```


3. 执行以下命令复制测试算例到当前目录。

```
cp -r
/path/to/FVCOM/FVCOM4.1/Examples/Estuary/ ./
```


4. 执行以下命令进入运行目录。

```
cd ./Estuary/run
```


5. 执行以下命令编辑算例输入文件。

```
vim tst_run.nml
```


6. 执行以下命令按“i”进入编辑模式，为“tst_grd.dat”增加单引号。

```
GRID_FILE = 'tst_grd.dat'
```


  按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。

7. 执行以下命令（到“/path/to/FVCOM/test/Estuary/tstinp”目录下）。

```
dos2unix tst_grd.dat
```


8. 执行以下命令运行作业（到“/path/to/FVCOM/test/Estuary/run”目录下）。

```
time mpirun -n 24 --allow-run-as-root --bind-to core /path/to/FVCOM/FVCOM4.1/FVCOM_source/fvcom --casename=tst
```


9. 执行以下命令查看当前目录，执行成功后生成“.nc”结果文件。

```
ll
```
