- 积分
- 15
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-11-18
- 最后登录
- 1970-1-1
|
发表于 2018-4-10 19:19:43
|
显示全部楼层
redhat7.0 , gcc4.8 编译PREP-CHEM-SRC-1.5
1.修改文件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=
#---------------------------------------------------------------NCL的库貌似不需要,全部注释掉。
# 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=/home/zhanghua/WRF/NCL/lib
# LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -ldl
#---------------------------------------------------------------
# NETCDF libraries
NETCDF=/home/zhanghua/WRF/LIBs/netcdf
NETCDF_INC=-I$(NETCDF)/include
NETCDF_LIBS=-L$(NETCDF)/lib -lnetcdf
#-lnetcdff
# HDF libraries,可以下载编译好centos的HDF5库
HDF5=/home/zhanghua/WRF/LIBs/hdf5-1.8.20
HDF5_INC=-I$(HDF5)/include
HDF5_LIB=-L$(HDF5)/lib -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -ldl -L/home/zhanghua/WRF/LIBs/grib2/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'
|
|