source: trunk/MESOSCALE_DEV/NETCDF/g95_netcdf @ 357

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
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.