- 积分
- 218
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-28
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
修改Makefile文件如下
################### NOTE ####################
### If you need to have the "byteswapped" ###
### option in your .ctl file, INCLUDE ###
### the -Dbytesw directive in your compiler ###
### flags. ###
#################################################
# compaq flags
#LIBNETCDF = -L/usr/local/netcdf/lib -lnetcdf -lm
#INCLUDE = -I/usr/local/netcdf/include -I./
#FC = f90
#FCFLAGS = -g -C -free
#CPP = /usr/bin/cpp
#CPPFLAGS = -I. -C -P -DRECL1
# linux flags (PGI)
LIBNETCDF = -L/scratch/student/huangw/Documents/WRF/netcdf/lib -lnetcdf -lm
INCLUDE = -I/scratch/student/huangw/Documents/WRF/netcdf/include -I/
FC = pgf90
FCFLAGS = -g -C -Mfree
FCFLAGS = -fast -Mfree
CPP = /usr/bin/cpp
CPPFLAGS = -I. -C -traditional -DRECL4
# linux flags (INTEL)
#LIBNETCDF = -L/usr/local/netcdf-intel/lib -lnetcdf -lm
#INCLUDE = -I/usr/local/netcdf-intel/include -I./
#FC = ifort
#FCFLAGS = -C -FR
#CPP = /usr/bin/cpp
#CPPFLAGS = -I. -C -traditional -DRECL1
# Sun flags
#LIBNETCDF = -L/usr/local/netcdf/lib -lnetcdf -lm
#INCLUDE = -I/usr/local/netcdf/include -I./
#FC = f90
#FCFLAGS = -g -C -free
#CPP = /usr/ccs/lib/cpp
#CPPFLAGS = -I. -C -P -DRECL4 -Dbytesw
# SGI flags
#LIBNETCDF = -L/usr/local/netcdf/lib -lnetcdf -lm
#INCLUDE = -I/usr/local/netcdf/include -I./
#FC = f90
#FCFLAGS = -g -C -freeform
#CPP = /lib/cpp
#CPPFLAGS = -I. -C -P -DRECL4 -Dbytesw
# IBM flags
#LIBNETCDF = -L/usr/local/lib32/r4i4 -lnetcdf -lm
#INCLUDE = -I/usr/local/include -I./
#FC = xlf
#FCFLAGS = -g -C -qfree=f90
#CPP = /usr/lib/cpp
#CPPFLAGS = -I. -C -P -DRECL4
# Darwin flags (using xlf compiler)
#LIBNETCDF = -L/usr/local/netcdf-xlf/lib -lnetcdf -lm
#INCLUDE = -I/usr/local/netcdf-xlf/include -I./
#FC = xlf
#FCFLAGS = -C -qfree=f90
#CPP = /usr/bin/cpp
#CPPFLAGS = -I. -C -P -DRECL4 -xassembler-with-cpp
##########################################################################
wrf_to_grads: wrf_to_grads.o module_wrf_to_grads_netcdf.o module_wrf_to_grads_util.o
$(FC) $(FCFLAGS) -o wrf_to_grads wrf_to_grads.o \
module_wrf_to_grads_netcdf.o \
module_wrf_to_grads_util.o \
$(LIBNETCDF)
wrf_to_grads.o: wrf_to_grads.F module_wrf_to_grads_util.o
$(CPP) $(CPPFLAGS) wrf_to_grads.F > wrf_to_grads.f
$(FC) $(FCFLAGS) -c wrf_to_grads.f $(INCLUDE)
module_wrf_to_grads_util.o: module_wrf_to_grads_util.F module_wrf_to_grads_netcdf.o
$(CPP) $(CPPFLAGS) module_wrf_to_grads_util.F > module_wrf_to_grads_util.f
$(FC) $(FCFLAGS) -c module_wrf_to_grads_util.f $(INCLUDE)
module_wrf_to_grads_netcdf.o: module_wrf_to_grads_netcdf.F
$(CPP) $(CPPFLAGS) module_wrf_to_grads_netcdf.F > module_wrf_to_grads_netcdf.f
$(FC) $(FCFLAGS) -c module_wrf_to_grads_netcdf.f $(INCLUDE)
clean:
rm -f *.o *.mod *.f wrf_to_grads
然后make 后遇到以下问题 请帮我看看为什么安装不上
|
|