爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 11888|回复: 4

初次运行ROMS的问题

[复制链接]
发表于 2013-4-12 22:09:23 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
有用过ROMS模式的请看过来。我按照wiki ROMS网页上的Installing and Running ROMS for First Time Users修改build.bash后编译通过了也产生了可执行文件oceanG. 但是当我运行oceanG文件时,并没有产生文章中标准输出的内容。输出的内容如下所示:
***********************************************************
Model Input Parameters:  ROMS/TOMS version 3.6  
                          Friday - April 12, 2013 -  4:05:48 PM
-----------------------------------------------------------------------------
MOD_NCPARAM - Unable to open variable information file:
               ROMS/External/varinfo.dat
               Default file is located in source directory.
***********************************************************
上面的记录没有用MPI,在我使用MPI后,输出记录不仅包含文本文字而且含有二进制乱码。输出内容如下(其中二进制码用@@@@@@@@@@@@@@@表示):
***********************************************************
Model Input Parameters:  ROMS/TOMS version 3.6  
                          Friday - April 12, 2013 -  4:01:02 PM
-----------------------------------------------------------------------------
INP_PAR - Unable to open ROMS/TOMS input script file.
           In distributed-memory applications, the input
           script file is processed in parallel. The Unix
           routine GETARG is used to get script file name.
           For example, in MPI applications make sure that
           command line is something like:
           mpirun -np 4 ocean ocean.in
           and not
           mpirun -np 4 ocean < ocean.in
Elapsed CPU time (seconds):
Analytical header files used:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                          
ROMS/TOMS - Input error ............. exit_flag:   2
ERROR: Abnormal termination: NetCDF INPUT.
REASON: No error      
***********************************************************
请问有人知道这是什么原因吗?请高手指点!非常感谢!!
密码修改失败请联系微信:mofangbao
发表于 2013-4-13 08:46:06 | 显示全部楼层
ROMS/External/varinfo.dat

是不是没下全数据文件呀?
密码修改失败请联系微信:mofangbao
发表于 2013-4-13 08:44:58 | 显示全部楼层
先调通串型的吧,再弄并行的。(个人建议)。
密码修改失败请联系微信:mofangbao
发表于 2015-8-13 14:43:41 | 显示全部楼层
这个是路径设置问题,将ocean_upwelling.in里面的路径改一下,就好了
密码修改失败请联系微信:mofangbao
发表于 2017-4-30 20:05:00 | 显示全部楼层
第一个是ocean.in里varinfo.dat的路径没设对,上面都提示了
  1. ROMS/External/varinfo.dat
  2. Default file is located in source directory.
复制代码
。第二个是串行和并行的运行命令不一样,按照要求来就行。
  1.            command line is something like:
  2.            mpirun -np 4 ocean ocean.in
  3.            and not
  4.            mpirun -np 4 ocean < ocean.in
复制代码
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表