爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6382|回复: 9

wrfchem编译能生成.exe文件,但是都是红色的

[复制链接]

新浪微博达人勋

发表于 2017-9-2 09:19:49 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 liusinuo 于 2017-9-2 09:28 编辑

跪求各位大神,我编译wrfchem的时候能生成那几个.exe文件,但是都是红色的,log文件显示错误是缺少个.o格式的文件,这种情况该怎么解决啊?那个文件是怎么生成的?我的complie.log文件完整见附件,因为太大了,直接粘贴超过了发帖的字数限制,再次感谢大神们!!
下面是log文件中出错的部分内容:(补充:我不知道怎么设置下载附件不收积分,所以我设置了回帖给5积分,这个问题已经困扰我很久了,希望大神帮帮忙啊。)
  1. ar: aero_subs.o: No such file or directory
  2. make[2]: [chemics] 错误 1 (忽略)
  3. make[2]: Leaving directory `/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/chem'
  4. make[1]: Leaving directory `/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5'
  5. if [ 1 -eq 1 ]    ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -module /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/main -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/esmf_time_f90  -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/main -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_netcdf -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_int -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/frame -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/share -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/phys -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/chem -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/inc -I/home/tianf/.opt/netcdf-4.1.3/include " em_core ; fi
  6. make[1]: Entering directory `/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5'
  7. --------------------------------------
  8. if [ 1  -eq 0 ] ; then \
  9.         CF= ; \
  10.     else \
  11.         CF="../chem/module_aerosols_sorgam.o ../chem/module_gocart_aerosols.o ../chem/module_mosaic_driver.o ../chem/module_input_tracer.o ../chem/module_aerosols_soa_vbs.o" ; \
  12.     fi
  13. ( cd dyn_em ; make -i -r -j 1 CF="" )
  14. make[2]: Entering directory `/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/dyn_em'

  15. /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/dyn_em/./start_em.f90:1529: undefined reference to `chem_init_'
  16. make[1]: [em_real] 错误 2 (忽略)
  17. mpif90 -f90=pgf90 -o nup.exe  -O3  -w -Mfree -byteswapio     nup_em.o  ../dyn_em/module_initialize_real.o libwrflib.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/fftpack/fftpack5/libfftpack.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_grib1/libio_grib1.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_grib_share/libio_grib_share.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_int/libwrfio_int.a -L/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/esmf_time_f90 -lesmf_time /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/RSL_LITE/librsl_lite.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/frame/module_internal_header_util.o /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/frame/pack_utils.o  -L/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_netcdf -lwrfio_nf -L/home/tianf/.opt/netcdf-4.1.3/lib -lnetcdff -lnetcdf
  18. libwrflib.a(solve_interface.o): In function `solve_interface_':
  19. /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/share/./solve_interface.f90:149: undefined reference to `chem_driver_'
  20. libwrflib.a(solve_em.o): In function `solve_em_':
  21. /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/dyn_em/./solve_em.f90:1984: undefined reference to `module_m3bcon_flow_dep_bdy_chem_v3_'
  22. /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/dyn_em/./solve_em.f90:2086: undefined reference to `module_m3bcon_flow_dep_bdy_tracer_v3_'
  23. libwrflib.a(solve_em.o): In function `.C1_284':
  24. solve_em.f90:(.data+0x9f0): undefined reference to `module_m3bcon_'
  25. libwrflib.a(start_em.o): In function `start_domain_em_':
  26. /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/dyn_em/./start_em.f90:1529: undefined reference to `chem_init_'
  27. make[1]: [em_real] 错误 2 (忽略)
  28. mpif90 -f90=pgf90 -o tc.exe  -O3  -w -Mfree -byteswapio     tc_em.o  ../dyn_em/module_initialize_real.o libwrflib.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/fftpack/fftpack5/libfftpack.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_grib1/libio_grib1.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_grib_share/libio_grib_share.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_int/libwrfio_int.a -L/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/esmf_time_f90 -lesmf_time /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/RSL_LITE/librsl_lite.a /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/frame/module_internal_header_util.o /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/frame/pack_utils.o  -L/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_netcdf -lwrfio_nf -L/home/tianf/.opt/netcdf-4.1.3/lib -lnetcdff -lnetcdf
  29. libwrflib.a(start_em.o): In function `start_domain_em_':/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/dyn_em/./start_em.f90:1529: undefined reference to `chem_init_'
  30. make[1]: [em_real] 错误 2 (忽略)
  31. make[1]: Leaving directory `/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/main'
  32. ( cd test/em_real ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
  33. if [ 0 -eq 1 ] ; then \
  34.       ( cd main ; make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -module /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/main -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/esmf_time_f90  -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/main -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_netcdf -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_int -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/frame -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/share -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/phys -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/chem -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/inc -I/home/tianf/.opt/netcdf-4.1.3/include " SOLVER=em IDEAL_CASE=real em_wrf_SST_ESMF ) ; \
  35.       ( cd test/em_esmf_exp ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . ) ; \
  36.       ( cd test/em_esmf_exp ; /bin/rm -f wrf_SST_ESMF.exe ; ln -s ../../main/wrf_SST_ESMF.exe . ) ; \
  37.       ( cd test/em_esmf_exp ; /bin/rm -f real.exe ; ln -s ../../main/real.exe . ) ; \
  38.       ( cd test/em_esmf_exp ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . ) ; \
  39.       ( cd test/em_esmf_exp ; /bin/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA ; \
复制代码




compile.log

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

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

新浪微博达人勋

 楼主| 发表于 2017-9-2 09:23:41 | 显示全部楼层

dddddddddddd

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

新浪微博达人勋

发表于 2017-9-2 10:09:22 | 显示全部楼层

回帖奖励 +5 金钱

/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/tools/standard.exe aero_subs.bb | /lib/cpp -C -P > aero_subs.f90
rm -f aero_subs.b aero_subs.bb
mpif90 -f90=pgf90 -o aero_subs.o -c -O3  -w -Mfree -byteswapio    -I../dyn_em -I../dyn_nmm  -module /home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/main -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/esmf_time_f90  -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/main -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_netcdf -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/external/io_int -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/frame -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/share -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/phys -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/chem -I/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/inc -I/home/tianf/.opt/netcdf-4.1.3/include  -r4 -i4  aero_subs.f90
PGF90-S-0285-Source line too long (aero_subs.f90: 663)
PGF90-S-0023-Syntax error - unbalanced parentheses (aero_subs.f90: 663)
  0 inform,   0 warnings,   2 severes, 0 fatal for eql3
make[2]: [aero_subs.o] 错误 2 (忽略)
rm -f isocom.o

你的错误在于这个f90没有编译过去,但是这个程序是不会有问题的,有可能是之前哪个库没有装好,实在没问题你换多核编译或者重新下一个安装包试一下
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-9-2 10:32:25 | 显示全部楼层
mojingyue 发表于 2017-9-2 10:09
/home/lliu/model/nitrate-ncp/WRFV3-nitrate-N2O5/tools/standard.exe aero_subs.bb | /lib/cpp -C -P > a ...

我之前编译是可以成功的,我修改了aero_subs.F这个文件里面的内容,但是我只是把一个变量的参数修改了下,重新编译就不行了。。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-9-2 10:37:08 | 显示全部楼层
刚刚仔细看了下,报错的内容是
PGF90-S-0285-Source line too long (aero_subs.f90: 663)
PGF90-S-0023-Syntax error - unbalanced parentheses (aero_subs.f90: 663)
建议你看看这个文件的663行,这行的代码写的比较长,pgi只支持每行132个字符,建议你给分两行写,别问我怎么分行;
如果类似的问题比较多,都要自己改的话,建议你换个intel编译器;


徐春萌 xuchunmeng89@gmail.com
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-9-2 10:42:05 | 显示全部楼层
邺下放歌 发表于 2017-9-2 10:37
刚刚仔细看了下,报错的内容是
PGF90-S-0285-Source line too long (aero_subs.f90: 663)
PGF90-S-0023-S ...

嗯嗯,谢谢你啊!我先把那行修改下,在试试看~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-9-2 10:45:30 | 显示全部楼层
成功了记得回帖哈
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-9-2 12:24:37 | 显示全部楼层
邺下放歌 发表于 2017-9-2 10:37
刚刚仔细看了下,报错的内容是
PGF90-S-0285-Source line too long (aero_subs.f90: 663)
PGF90-S-0023-S ...

果然是这个问题,现在编译成功,非常感谢你
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-9-2 12:29:49 | 显示全部楼层
邺下放歌 发表于 2017-9-2 10:45
成功了记得回帖哈

大神,我还有个问题想请教下你,我在运行wrfchem的时候,在namelist.input里面设置了fdda,没设置fdda前可以正常运行,但是设置后会无缘无故中断,而且rsl.out文件不报错,这是什么情况啊?之前我有发帖,但是没人回应http://bbs.06climate.com/forum.php?mod=viewthread&tid=55191
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-9-2 16:14:38 | 显示全部楼层
不太懂哦
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

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

本版积分规则

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

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

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