source: trunk/MESOSCALE/NETCDF/g95_netcdf @ 155

Last change on this file since 155 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
7wget http://www.lmd.jussieu.fr/~hourdin/PATCH_LMDZ4OR_G95/netcdf-3.6.1.tar.gz
8gunzip netcdf-3.6.1.tar.gz
9tar xvf netcdf-3.6.1.tar
10
11cd 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
22export CC=gcc
23export CXX=g++
24export CPP='gcc -E'
25export FC=g95
26export F77=g95
27export F90=g95
28export CFLAGS='-O2 -DpgiFortran'
29export CXXFLAGS='-O2 -DpgiFortran'
30export CPPFLAGS='-DpgiFortran'
31export FFLAGS='-O2 -fno-second-underscore'
32export FCFLAGS='-O2 -fno-second-underscore'
33export F90FLAGS='-O2 -fno-second-underscore'
34
35
36
37cd src
38cd fortran
39
40
41# Correction d'un petit probleme de netcdf
42sed -e '83s/^$/\#define f2cFortran/' cfortran.h >| tmp
43\mv tmp cfortran.h
44cd ..
45
46# Compilation
47./configure
48make check
49make install
50
Note: See TracBrowser for help on using the repository browser.