爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5677|回复: 9

安装WRF遇到问题

[复制链接]

新浪微博达人勋

发表于 2018-8-21 13:18:34 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 zzw9701 于 2018-8-22 08:32 编辑

刚接触WRF,想要模拟一个台风,在论坛上发现可以用移动嵌套网格,然后就按着介绍的步骤:1.把frame文件夹下的module_driver_constants.F中的max_moves改成了150;2.在arch文件夹下的configure_new.defaults下的ARCH_LOCAL中加入了-DMOVE_NESTS,3。编译./configure时选了1.Serial后,选了2.present moves,然后再./compile em_real, 但是显示编译不成功,以下是显示的末尾信息,有做过这一方面工作的大神给一点建议吗?

( cd test/em_real ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . )
( cd test/em_real ; /bin/rm -f LANDUSE.TBL ; ln -s ../../run/LANDUSE.TBL . )
( cd test/em_real ; /bin/rm -f SOILPARM.TBL ; ln -s ../../run/SOILPARM.TBL . )
( cd test/em_real ; /bin/rm -f URBPARM.TBL ; ln -s ../../run/URBPARM.TBL . )
( cd test/em_real ; /bin/rm -f VEGPARM.TBL ; ln -s ../../run/VEGPARM.TBL . )
( cd test/em_real ; /bin/rm -f MPTABLE.TBL ; ln -s ../../run/MPTABLE.TBL . )
( cd test/em_real ; /bin/rm -f tr49t67 ; ln -s ../../run/tr49t67 . )
( cd test/em_real ; /bin/rm -f tr49t85 ; ln -s ../../run/tr49t85 . )
( cd test/em_real ; /bin/rm -f tr67t85 ; ln -s ../../run/tr67t85 . )
( cd test/em_real ; /bin/rm -f gribmap.txt ; ln -s ../../run/gribmap.txt . )
( cd test/em_real ; /bin/rm -f grib2map.tbl ; ln -s ../../run/grib2map.tbl . )
( cd run ; /bin/rm -f real.exe ; ln -s ../main/real.exe . )
( cd run ; /bin/rm -f tc.exe ; ln -s ../main/tc.exe . )
( cd run ; /bin/rm -f ndown.exe ; ln -s ../main/ndown.exe . )
#TEMPORARILY REMOVED ( cd run ; /bin/rm -f nup.exe ; ln -s ../main/nup.exe . )
( cd run ; if test -f namelist.input ; then \
                /bin/cp -f namelist.input namelist.input.backup ; fi ; \
                /bin/rm -f namelist.input ; cp ../test/em_real/namelist.input . )

==========================================================================
build started:   Tue Aug 21 12:59:02 EDT 2018
build completed: Tue Aug 21 13:16:17 EDT 2018

---> Problems building executables, look for errors in the build log  <---

==========================================================================


compile.log

566.23 KB, 下载次数: 5, 下载积分: 金钱 -5

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

新浪微博达人勋

发表于 2018-8-21 16:07:41 | 显示全部楼层
贴 log 文件
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2018-8-21 16:43:21 | 显示全部楼层

你好,请问log文件应该在哪个文件夹里找啊,新手小白完全不懂,麻烦你告诉我一下。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-8-21 17:22:45 | 显示全部楼层

make[1]: [em_wrf] Error 2 (ignored)
make[1]: Leaving directory `/home/zhangzw/WRF/WRFV3/main'
( cd run ; /bin/rm -f wrf.exe ; ln -s ../main/wrf.exe . )
你好,请问是这个吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-8-22 07:44:16 | 显示全部楼层
./compile em_real >& compile.log
然后再打开compile.log文件,搜索Error,看第一个Error显示的内容提示
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-8-22 08:33:54 | 显示全部楼层
islandowner 发表于 2018-8-22 07:44
./compile em_real >& compile.log
然后再打开compile.log文件,搜索Error,看第一个Error显示的内容提示

None of WRF_EM_CORE, WRF_NMM_CORE,
        specified in shell environment....
copying Registry/Registry.EM to Registry/Registry

==============================================================================================

V3.8.1   

Compiling: WRF_EM_CORE  

Linux localhost.localdomain 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

pgf90-Error-Unknown switch: --version

==============================================================================================

setting parallel make -j 2

==============================================================================================

The following indicate the compilers selected to build the WRF system

Serial Fortran compiler (mostly for tool generation):
which SFC
/home/software/pgi/linux86-64/10.6/bin/pgf90

Serial C compiler (mostly for tool generation):
which SCC
/usr/bin/gcc

Fortran compiler for the model source code:
which FC
/home/software/pgi/linux86-64/10.6/bin/pgf90
Will use 'time' to report timing information

C compiler for the model source code:
which CC
/usr/bin/gcc

==============================================================================================

make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -module /home/zhangzw/WRF/WRFV3/main -I/home/zhangzw/WRF/WRFV3/external/esmf_time_f90  -I/home/zhangzw/WRF/WRFV3/main -I/home/zhangzw/WRF/WRFV3/external/io_netcdf -I/home/zhangzw/WRF/WRFV3/external/io_int -I/home/zhangzw/WRF/WRFV3/frame -I/home/zhangzw/WRF/WRFV3/share -I/home/zhangzw/WRF/WRFV3/phys -I/home/zhangzw/WRF/WRFV3/chem -I/home/zhangzw/WRF/WRFV3/inc -I/home/software/netcdf/include " ext
make[1]: Entering directory `/home/zhangzw/WRF/WRFV3'
--------------------------------------
( cd frame ; make -i -r externals )
make[2]: Entering directory `/home/zhangzw/WRF/WRFV3/frame'
( cd /home/zhangzw/WRF/WRFV3/external/esmf_time_f90 ; \
          make -j 2 FC="pgf90 -r4 -i4  -w -Mfree -byteswapio  " RANLIB="ranlib" \
          CPP="/lib/cpp -P -I/home/zhangzw/WRF/WRFV3/inc -I. -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM  -DDM_PARALLEL -DSTUBMPI -DNETCDF -DMOVE_NESTS -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -traditional" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory `/home/zhangzw/WRF/WRFV3/external/esmf_time_f90'
/bin/rm -f ESMF_Base.o
/bin/rm -f ESMF_Fraction.o
sed -e "/\!.*'/s/'//g" ESMF_Base.F90 > ESMF_Base.b
sed -e "/\!.*'/s/'//g" ESMF_Fraction.F90 > ESMF_Fraction.b
/lib/cpp -P -I/home/zhangzw/WRF/WRFV3/inc -I. -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM  -DDM_PARALLEL -DSTUBMPI -DNETCDF -DMOVE_NESTS -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -traditional -I. ESMF_Fraction.b > ESMF_Fraction.f
/lib/cpp -P -I/home/zhangzw/WRF/WRFV3/inc -I. -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM  -DDM_PARALLEL -DSTUBMPI -DNETCDF -DMOVE_NESTS -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -traditional -I. ESMF_Base.b > ESMF_Base.f
/bin/rm -f ESMF_Fraction.b
/bin/rm -f ESMF_Base.b
pgf90 -r4 -i4  -w -Mfree -byteswapio   -o ESMF_Fraction.o -c ESMF_Fraction.f
pgf90 -r4 -i4  -w -Mfree -byteswapio   -o ESMF_Base.o -c ESMF_Base.f
/bin/rm -f ESMF_BaseTime.o
sed -e "/\!.*'/s/'//g" ESMF_BaseTime.F90 > ESMF_BaseTime.b
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-8-22 08:35:04 | 显示全部楼层
islandowner 发表于 2018-8-22 07:44
./compile em_real >& compile.log
然后再打开compile.log文件,搜索Error,看第一个Error显示的内容提示

是这个吗?整个的文本我也上传了,但是我不知道怎么设置不要金钱。。。麻烦你帮我看一下了~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-8-22 10:57:21 | 显示全部楼层
pgf90-Error-Unknown switch: --version
可能是pgi版本不对
或者检查一下你安装pgi了没,如果安装了,设置环境变量了么
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-8-22 11:00:00 | 显示全部楼层
一个安装WRF的帖子,基本比较清楚(路径有些小错误,WRFV3应该是是第四版本了)http://www2.mmm.ucar.edu/wrf/OnL ... _tutorial.php#STEP1
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-8-22 11:35:11 | 显示全部楼层
islandowner 发表于 2018-8-22 11:00
一个安装WRF的帖子,基本比较清楚(路径有些小错误,WRFV3应该是是第四版本了)http://www2.mmm.ucar.edu/w ...

恩恩,好,我看一下,谢谢你~
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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