Go to most recent revision |
Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
5 |
michaesp |
1 |
#!/bin/csh
|
|
|
2 |
|
|
|
3 |
# Set netCDF
|
|
|
4 |
setenv GRIB_API_INCLUDE -I/usr/local/ecmwf_tools/pgi-9.0-1/include
|
|
|
5 |
setenv GRIB_API_LIB -L/usr/local/ecmwf_tools/pgi-9.0-1/lib
|
|
|
6 |
|
|
|
7 |
# Remove old files
|
|
|
8 |
\rm *.o
|
|
|
9 |
\rm *.a
|
|
|
10 |
\rm frgbtocdf_api
|
|
|
11 |
|
|
|
12 |
# libgm2em + libtra + libipo
|
|
|
13 |
pgf90 -c -O libgm2em.f
|
|
|
14 |
ar r libgm2em.a libgm2em.o
|
|
|
15 |
ranlib libgm2em.a
|
|
|
16 |
|
|
|
17 |
pgf90 -c -O libtra.f
|
|
|
18 |
ar r libtra.a libtra.o
|
|
|
19 |
ranlib libtra.a
|
|
|
20 |
|
|
|
21 |
pgf90 -c -O libipo.f
|
|
|
22 |
ar r libipo.a libipo.o
|
|
|
23 |
ranlib libipo.a
|
|
|
24 |
|
|
|
25 |
# cdfio + cdfplus
|
|
|
26 |
pgf90 -c -O -I${NETCDF}/include libcdfio.f
|
|
|
27 |
ar r libcdfio.a libcdfio.o
|
|
|
28 |
ranlib libcdfio.a
|
|
|
29 |
|
|
|
30 |
pgf90 -c -O -I${NETCDF}/include libcdfplus.f
|
|
|
31 |
ar r libcdfplus.a libcdfplus.o
|
|
|
32 |
ranlib libcdfplus.a
|
|
|
33 |
|
|
|
34 |
# fgrb2cdf_api
|
|
|
35 |
pgf90 -O -o fgrbtocdf_api ${GRIB_API_INCLUDE} fgrbtocdf_api.f -I${NETCDF}/include -L. -lcdfio -lcdfplus -ltra -lipo -lgm2em -L${NETCDF}/lib -lnetcdf ${GRIB_API_INCLUDE} ${GRIB_API_LIB} -lgrib_api_f77 -lgrib_api -ljasper -lm
|
|
|
36 |
|
|
|
37 |
exit 0
|
|
|
38 |
|