Last change
on this file since 357 was
330,
checked in by aslmd, 13 years ago
|
MESOSCALE: changes related to g95 support. but the model does not compile apparently. notes taken in NOTES.txt but sorry g95 with LMD_MM_MARS no longer supported at least on 64bits machines. LMDZ.MARS: minor changes related to warning while trying to compile with g95.
|
-
Property svn:executable set to
*
|
File size:
885 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.