爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6023|回复: 5

安装prep-chem-src

[复制链接]
发表于 2018-4-13 17:19:47 | 显示全部楼层 |阅读模式

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

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

x
在安装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
Q.png
已经将HDF5删掉重装了几次,还是出这样的问题.请问这个问题是不是因为HDF5安装有误造成的,怎样才能确定自己的HDF5是正确安装的?

密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-4-13 17:21:10 | 显示全部楼层
本帖最后由 骨头333 于 2018-4-13 17:23 编辑

附include.mk.gfortran.wrf,修改部分添加了背景色

#Makefile include include.mk.opt
############################## Change Log ##################################
# 1.0.0.2
#
# 000908 MJB include.mk-mrc ##
#            Added MAKE environment varaible.
#            Added free format option to F_OPTS for some platforms. ##
# 000907 MJB include.mk-mrc ##
#            Changed the defualts to no NCAR Graphics and no parallel.
#            Also commented out the machine specifics to force the user to
#            select the appropriate machine for them. ##
# 000823 MJB include.mk-mrc ##
#            New - defines all make environment varaibles and is included
#            in all make files. ##
#
############################################################################

# Define make (gnu make works best).

MAKE=/usr/bin/make

# Activate appropriate parts below, comment out others.

# NCAR Graphics.

#---------------------------------------------------------------
# If you are using a standard installation of NCAR Graphics, set:
#       LOADER=ncargf90
# in the machine-dependent sections below
#LIBNCARG=
#---------------------------------------------------------------
# If you are using the NCAR dummy libraries...

NCARG_DIR=$(BASE)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION) -lncarg_c-$(UTILS_VERSION) \
#                        -lncarg_gks-$(UTILS_VERSION)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION)
LIBNCARG=$(BASE)/libncarg-$(UTILS_VERSION)-$(OPT).a
#---------------------------------------------------------------
# If you are using a real distribution of NCAR Graphics...
#NCARG_DIR=/usr/local/ncarg-4.3.0/lib
#LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -ldl
#---------------------------------------------------------------

# NETCDF libraries

NETCDF=/usr/local/netcdf
NETCDF_INC=-I$(NETCDF)/include
NETCDF_LIBS=-L$(NETCDF)/lib -lnetcdf
#-lnetcdff

# HDF libraries

HDF5=/usr/local/HDF5
HDF5_INC=-I$(HDF5)/include
HDF5_LIB=-L$(HDF5)/lib -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -ldl -L/usr/local/zlib/lib -lz -ldl       
         

# Machine-dependent options.

#-----------------  LINUX Portland Group pgf77/gcc ---------------
CMACH=PC_LINUX1
F_COMP=gfortran
C_COMP=gcc
LOADER=gfortran
C_LOADER=gcc
LIBS=
MOD_EXT=mod

F_OPTS=  -Xpreprocessor -D$(CHEM) -O2 -fconvert=big-endian -frecord-marker=4
C_OPTS= -O2  
LOADER_OPTS= -O2

#-----------------------------------------------------------------


# If compiling for a single-CPU platform only (without MPI):

#-----------------------------------------------------------------
PAR_LIBS=
PAR_DEFS=
#-----------------------------------------------------------------


# For IBM,HP,SGI,ALPHA use these:
#ARCHIVE=ar rs
ARCHIVE=ar -crs

# For NEC SX-6
#ARCHIVE=sxar rs
# For SUN,CONVEX
#ARCHIVE=ar r'
密码修改失败请联系微信:mofangbao
发表于 2018-12-27 12:35:51 | 显示全部楼层
按照readme里面那个 把命令make OPT=xxxx 那一行写全,再试试。
密码修改失败请联系微信:mofangbao
发表于 2019-2-20 10:57:58 | 显示全部楼层
楼主您好,请问您解决这个问题了吗?我也在安装prep-chem-src时和您遇到了一模一样的错误
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2019-2-20 11:46:47 | 显示全部楼层
ccyy0 发表于 2019-2-20 10:57
楼主您好,请问您解决这个问题了吗?我也在安装prep-chem-src时和您遇到了一模一样的错误

多次卸载安装了hdf5,参考了http://forum.wrfforum.com/viewtopic.php?f=5&t=8793,安装了hdf5-1.8.13
密码修改失败请联系微信:mofangbao
发表于 2019-2-20 12:06:11 | 显示全部楼层
骨头333 发表于 2019-2-20 11:46
多次卸载安装了hdf5,参考了http://forum.wrfforum.com/viewtopic.php?f=5&t=8793,安装了hdf5-1.8.13

十分感谢您的回复!我之前安装NetCDF-C库时有依赖于HDF5库,请问现在卸载重装HDF5库会有影响吗?您重新安装的HDF5库的include文件夹中有hdf5.mod了吗
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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