立即注册 登录
气象家园 返回首页

骨头333的个人空间 http://bbs.06climate.com/?80467 [收藏] [复制] [分享] [RSS]

日志

记录一下prepchemsrc

已有 539 次阅读2018-4-15 14:23

记录一下prepchemsrc安装中遇到的问题及解决方法,防止自己以后忘记了,先在这里留个痕迹.
1.网页参考
http://bbs.06climate.com/forum.php?mod=viewthread&tid=51340&extra=&page=1
http://bbs.06climate.com/forum.php?mod=viewthread&tid=40143
2.遇到的第一个问题(判断应该是hdf5没有装好造成的):
在安装prep_chem_source时,先修改include.mk.gfortran.wrf,随后make OPT=gfortran.wrf CHEM=RADM_WRF_FIM就出现与上文链接中一样的问题:
Fatal Error: Can't open module file ‘hdf5.mod’ for reading at (1): 没有那个文件或目录
compilation terminated.
depend_prepsrc.mk:479: recipe for target 'edgar_emissions.o' failed
make: *** [edgar_emissions.o] Error 1

解决:多次卸载安装了hdf5,参考了http://forum.wrfforum.com/viewtopic.php?f=5&t=8793,安装了hdf5-1.8.13

3.遇到的第二个问题(应该是gfortran的问题)
edgar_emissions.f90:841:15:

  'AGRICULTURE',&
               1
Error: Different CHARACTER lengths (11/6) in array constructor at (1)
edgar_emissions.f90:894:61:

       filename=trim(edgar_data_dir)//"/"//trim(PREFIX)//trim(setor(isetor))//trim(suffix)
                                                             1
Error: Function ‘setor’ at (1) has no IMPLICIT type
edgar_emissions.f90:916:16:

         if(trim(setor(isetor)) .eq. 'AGRICULTURE' .and. trim(spc_name(ispc)) .ne. 'NH3') cycl
                1
Error: Function ‘setor’ at (1) has no IMPLICIT type
edgar_emissions.f90:923:30:

                   print*,trim(setor(isetor)),"   ",trim(dsetname),i, " MAX ",maxval(src_dummy
                              1
Error: Function ‘setor’ at (1) has no IMPLICIT type
edgar_emissions.f90:924:30:

                   print*,trim(setor(isetor)),"   ",trim(dsetname),i, " MIN ",minval(src_dummy
                              1
Error: Function ‘setor’ at (1) has no IMPLICIT type
depend_prepsrc.mk:479: recipe for target 'edgar_emissions.o' failed
make: *** [edgar_emissions.o] Error 1

家园里有人提出重装gfortran解决,我胆子比较小,不敢重装,万一wrfchem没了,几个月的辛苦就报废了.
参考了http://forum.wrfforum.com/viewtopic.php?f=39&t=9199

4.hdf5安装(程序可能需要根据不同情况做出修改)
FC=pgf90 CC=pgcc CXX=pgc++ ./configure --prefix=/usr/local/HDF5 --with-zlib=/usr/local/zlib --disable-shared --enable-fortran

CC=gcc FC=gfortran F77=gfortran CXX='' ./configure

5.最后
一个人钻研wrfchem很难过,苦钻几个月觉得老了好多哦,不过解决问题的快感什么都媲美不了,s宝宝接着fighting

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

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

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

返回顶部