FVCOM- 错误1-10(逐步更新)

ps:因代码有改过,故部分错误仅限个人。

1. 报错

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FVCOM Fatal Error!
Unable to OPEN the test file:
../casenameout/.fvcomtestfile
IOSTAT ERROR#29; suggests bad directory path:
../casenameout/
Stopping FVCOM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

原因

未建立输出文件夹

修改

在case文件夹里建立输出文件夹 ‘ casenameout ‘

2. 报错

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FVCOM Fatal Error!
IN SURFACE WIND BOUNDARY CONDITION FILE OBJECT
FILE NAME: casename_wnd.nc
THE MODEL RUN STARTS BEFORE THE FORCING TIME SERIES
Stopping FVCOM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

原因

风场文件的时间范围缺失,与nml文件中定义需要运行的时间
i.e. casename_run.nml
     &NML_CASE
     START_DATE = ‘2016-10-01 00:00:00’,
     END_DATE = ‘2017-06-30 00:00:00’,
     但 casename_wnd.nc 中时间范围为: 2016-10-01 00:00:00~2017-06-28 23:00:00,均小于 END_DATE,故报时间错误。同理,若时间均大于START_DATE,也会报错。

修改

① 修改 ‘END_DATA’         至小于 ‘风场文件时间’
② 重新生成 ‘风场文件时间’ 至大于 ‘END_DATA’

3. fvcom调试报错

...
The attributes of this name conflict with those made accessible by a USE statement
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

原因

文件中变量定义与全局变量冲突

修改

将报错文件中的冲突定义改成注释行。

4. 报错 - 无原因停止

下一步:输出波浪数据后,即可跑模型了,却没给出FVCOM ERROR

!==============================================================
!
!           SETTING UP NESTING IO
! Time Series Probes are off
!====================================================
!====================================================
!============== STARTING MAIN LOOP AT:===============
!      0   2016-06-01T00:00:00.000000      UNKNOWN       -1.0000  |                    |
!====================================================
!====================================================
!====================================================
!====================================================

原因

1)加上波浪后报错
      未将 ‘ specavs ’ 文件放入casenamein 文件中,缺失文件报错停止。

5. 报错

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FVCOM Fatal Error!
You must specify a valid projection reference and compile with PROJ to use files with 
cartesion coordinates in spherical mode
Stopping FVCOM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

原因

编译时,make.inc 中坐标开关设置错误

修改

确认 FLAG 2 的开关情况,要与输入文件的坐标形式对应,并重新编译运行
【FLAG 2:‘ on ’ 是球坐标,‘ off ’ 是笛卡尔(UTM)坐标】。

6. 报错

!           SETTING UP NESTING IO
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FVCOM Fatal Error!
Be not ashamed of mistakes and thus make them crimes.
Stopping FVCOM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

原因

 YOUR NESTING FILE DOES NOT HAVE THE SAME NUMBER OF LEVELS AS YOUR MODEL

模型的sigma层和nesting文件的分层不一致

修改

1、修改模型sigma层设置(casename_sigma.dat),使之与nesting文件一致;
2、重写nesting文件,使之与模型一致。

7. 报错

!====================================================
! Recalculating mean density in pressure coordinates
FOUND NO DATA AT DEPTH:   7.671966
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FVCOM Fatal Error!
RHO_PMEAN: In Parallel case, found fcount LT 0.0!
Stopping FVCOM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

改跑斜压后,修改了部分nml中的设置

原因

打开了 ’ RECALCULATE_RHO_MEAN = T ’

  • 一般不用开,特别是区域小的情况下。但是开着也没有问题,此处会报错,还是因为模型有地方有问题,故打开通不过(via ding/2019.10.21 wechat)

修改

将RECALCULATE_RHO_MEAN关掉

  • 作用:隔一段时间再计算平均密度场,为减小斜压梯度力计算误差

8. 报错

!                 RUNNING COLDSTART                              !
!                                                                !
!              OPENING FILES FOR COLDSTART                       !
!                                                                !
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FVCOM Fatal Error!
File: ../casenamein/initial_casename.nc; Can not be opend by nf90_open
NF90ERROR::No such file or directory
Stopping FVCOM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

跑斜压,读取初始场文件出错。

原因

文件名有错,或文件未放置在读取文件中

9. fvcom调试报错

mpif90  -c  -O3 -I/lustre/work/chenyanyu/FVCOM_source_ssc/libs/install/include        mod_prec.f90
error: can't open file mod_prec.o for write
compilation aborted for mod_prec.f90 (code 1)
make: *** [mod_prec.o] Error 1

原因

未加载module

修改

1、module list
一般来说是会发现没东西
2、回到根目录

  • source .bashrc
  • module load intel2013(看集群环境更换加载模块)

**一劳永逸的办法是修改 “.bash_profile” 和 ".bashrc"文件

你可能感兴趣的:(FVCOM)