Last change
on this file since 191 was
27,
checked in by aslmd, 14 years ago
|
spiga:mineur ajout des cuisines de secours NETCDF avec 3.6.1
|
-
Property svn:executable set to
*
|
File size:
883 bytes
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | ### |
---|
4 | ### marche aussi en 64 bits |
---|
5 | ### |
---|
6 | |
---|
7 | wget http://www.lmd.jussieu.fr/~hourdin/PATCH_LMDZ4OR_G95/netcdf-3.6.1.tar.gz |
---|
8 | gunzip netcdf-3.6.1.tar.gz |
---|
9 | tar xvf netcdf-3.6.1.tar |
---|
10 | |
---|
11 | cd netcdf-3.6.1 |
---|
12 | |
---|
13 | # On modifie les options de compilation |
---|
14 | #export FC=g95 |
---|
15 | #export F90=g95 |
---|
16 | #export CC=gcc |
---|
17 | #export F90FLAGS=" -cpp -ffree-form" |
---|
18 | #export FFLAGS=" -cpp " |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | export CC=gcc |
---|
23 | export CXX=g++ |
---|
24 | export CPP='gcc -E' |
---|
25 | export FC=g95 |
---|
26 | export F77=g95 |
---|
27 | export F90=g95 |
---|
28 | export CFLAGS='-O2 -DpgiFortran' |
---|
29 | export CXXFLAGS='-O2 -DpgiFortran' |
---|
30 | export CPPFLAGS='-DpgiFortran' |
---|
31 | export FFLAGS='-O2 -fno-second-underscore' |
---|
32 | export FCFLAGS='-O2 -fno-second-underscore' |
---|
33 | export F90FLAGS='-O2 -fno-second-underscore' |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | cd src |
---|
38 | cd fortran |
---|
39 | |
---|
40 | |
---|
41 | # Correction d'un petit probleme de netcdf |
---|
42 | sed -e '83s/^$/\#define f2cFortran/' cfortran.h >| tmp |
---|
43 | \mv tmp cfortran.h |
---|
44 | cd .. |
---|
45 | |
---|
46 | # Compilation |
---|
47 | ./configure |
---|
48 | make check |
---|
49 | make install |
---|
50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.