WRF2grads compiling.
Wang, Yi
yi.wang at PNL.GOV
Wed Apr 25 21:00:51 EDT 2007
Hi Folks:
On a Mac Pro (intel-based) Mac, how do I install WRF2grads?
I changed my Makefile to :
# Darwin flags (using xlf compiler)
LIBNETCDF = -L/usr/local/lib -lnetcdf -lm
INCLUDE = -I/usr/local/include -I./
FC = gfortran
FCFLAGS = -g -C
CPP = /usr/bin/cpp
CPPFLAGS = -I. -C -P -DRECL4 -xassembler-with-cpp (or CPPFLAGS = -DNDEBUG
-Df2cFortranp, same thing as below).
##########################################################################
And, I got this:
we11424:~/WRF_model/WRF2GrADS d3p826$ make
/usr/bin/cpp -I. -C -P -DRECL4 -xassembler-with-cpp
module_wrf_to_grads_netcdf.F > module_wrf_to_grads_netcdf.f
gfortran -g -C -c module_wrf_to_grads_netcdf.f
-I/usr/local/include -I./
/usr/bin/cpp -I. -C -P -DRECL4 -xassembler-with-cpp
module_wrf_to_grads_util.F > module_wrf_to_grads_util.f
gfortran -g -C -c module_wrf_to_grads_util.f
-I/usr/local/include -I./
/usr/bin/cpp -I. -C -P -DRECL4 -xassembler-with-cpp wrf_to_grads.F >
wrf_to_grads.f
gfortran -g -C -c wrf_to_grads.f -I/usr/local/include -I./
gfortran -g -C -o wrf_to_grads wrf_to_grads.o \
module_wrf_to_grads_netcdf.o \
module_wrf_to_grads_util.o \
-L/usr/local/lib -lnetcdf -lm
/usr/bin/ld: Undefined symbols:
_MAIN__
collect2: ld returned 1 exit status
make: *** [wrf_to_grads] Error 1
Any suggestion, idea what is wrong?
I installed my netCDF with gfortran compiler from the source. It sits in
/usr/local/lib or /usr/local/include
Thanks,
Yi
More information about the gradsusr
mailing list