爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5616|回复: 4

WPS3.9.1编译缺少geogrid和metgrid

[复制链接]

新浪微博达人勋

发表于 2018-4-11 14:17:35 | 显示全部楼层 |阅读模式

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

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

x
1.我的本机设置:gfortran -v 5.5.0 (当前用户下边),服务器是安装的4.8.5.
我安装的是WRFV3.9.1.1+WPS3.9.1+wrf-cHEM3.9.1
2.问题描述:
WRFV可以很好地安装顺利,在安装WPS3.9.1时候缺失两个程序
报错:WPS Fatal Error: Can't open module file ‘netcdf.mod’ for reading at (1): No such file or directory
3.我自己探索解决的方法:
(1)说必须WPS 和WRFV必须在同一安装目录下边,我查看了是的,为了以防万一我还去namelist.wps下边改成绝对路径,可是失败了。
(2)说在WRF_LIB (configure.wps文件下) -L$(NETCDF)/lib -lnetcdff -lnetcdf 后边添加一些库的链接,我也都试了,结果还是不行。
(3)我在官网上边还找到一个官方的说法,One solution would be to upgrade to a newer version of gfortran. Another simple, quick solution would be to go into the read_namelist.F file, found in ungrib/src/, and go to line 56. Change it to:
real, dimension(250) :: new_plvl
Then delete line 74:
allocate(new_plvl(size(new_plvl_in)))
and delete line 297:
deallocate(new_plvl)
Save the read_namelist.F file, then recompile again.
还是失败了,求助。



密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-4-11 16:56:08 | 显示全部楼层
-L$(NETCDF)/lib -lnetcdff -lnetcdf -lgomp
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-4-11 18:09:39 | 显示全部楼层
andrewsoong 发表于 2018-4-11 16:56
-L$(NETCDF)/lib -lnetcdff -lnetcdf -lgomp

这种的我也试了 ,不行
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-12-2 17:50:55 | 显示全部楼层
玄奘老乡 发表于 2018-4-11 18:09
这种的我也试了 ,不行

请问下楼主解决了吗?安装WRF3.9.1没有问题,但是安装WPS3.9.1的时候老是出问题,没有生成metgrid.exe,显示错误如下,搜了一下,论坛里有类似问题的帖子,但是最终也没有解决,所以想问下有没有大佬解决了这个问题的?问题到底出在哪里呢?(经过测试,安装WPS3.8没有问题的)
scan_input.f90(14): error #7013: This module file was not generated by any release of this compiler.   [NETCDF]
    use netcdf
--------^
scan_input.f90(74): error #6404: This name does not have a type, and must have an explicit type.   [NF90_NOWRITE]
        stat = nf90_open(trim(filename), NF90_NOWRITE, handle % ncid)
-----------------------------------------^
我的系统配置如下:
系统Red Hat 4.8.5-36
ifort编译器
netcdf4.1.3
mpich3.0.4
zlib/jasper/libpnd
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-12-2 17:53:11 | 显示全部楼层
andrewsoong 发表于 2018-4-11 16:56
-L$(NETCDF)/lib -lnetcdff -lnetcdf -lgomp

老师,WPS3.9.1安装求助,问题如下:
安装WRF3.9.1没有问题,但是安装WPS3.9.1的时候老是出问题,没有生成metgrid.exe,显示错误如下,搜了一下,论坛里有类似问题的帖子(http://bbs.06climate.com/forum.php?mod=viewthread&tid=58079),但是最终也没有解决,所以想请教下老师这个问题如何解决?问题可能出在哪里呢?(经过测试,安装WPS3.8没有问题的)
scan_input.f90(14): error #7013: This module file was not generated by any release of this compiler.   [NETCDF]
    use netcdf
--------^
scan_input.f90(74): error #6404: This name does not have a type, and must have an explicit type.   [NF90_NOWRITE]
        stat = nf90_open(trim(filename), NF90_NOWRITE, handle % ncid)
-----------------------------------------^
我的系统配置如下:
系统Red Hat 4.8.5-36
ifort编译器
netcdf4.1.3
mpich3.0.4
zlib/jasper/libpnd
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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