source: trunk/MESOSCALE_DEV/NETCDF/g95_netcdf_nosecondunderscore @ 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: 1.0 KB
Line 
1#! /bin/bash
2
3#wget http://www.lmd.jussieu.fr/~hourdin/PATCH_LMDZ4OR_G95/netcdf-3.6.1.tar.gz
4#gunzip netcdf-3.6.1.tar.gz
5tar xvf netcdf-3.6.1.tar
6
7#cp /donnees/emlmd/Downloads/Software/netcdf-4.0.1.tar.gz .
8#gunzip netcdf-4.0.1.tar.gz
9#tar xvf netcdf-4.0.1.tar
10#cd netcdf-4.0.1
11
12here=$PWD
13zename=g95_64_nosecondunderscore_netcdf-3.6.1
14
15mkdir $zename
16cd netcdf-3.6.1/src
17
18export CPPFLAGS=-Df2cFortran
19export CC=gcc
20export CFLAGS="-O2"
21export CXX=g++
22export CXXFLAGS="-O2"
23export FC=g95
24export FFLAGS=" -cpp -O2 -fno-second-underscore"
25#export F77=g95
26#export CPP='gcc -E'
27export F90=g95
28export F90FLAGS=" -cpp -ffree-form -O2 -fno-second-underscore"
29
30#export FCFLAGS='-O2 -fno-second-underscore'
31#### enlever CPP ???
32##FCFLAGS="-g -O2 -fno-second-underscore"
33##FFLAGS="-g -O2 -fno-second-underscore"
34#export CPPFLAGS=-DpgiFortran
35
36./configure --prefix=$here/$zename > $here/$zename/configure.log 2>&1
37make > $here/$zename/make.log 2>&1
38make test > $here/$zename/make_test.log 2>&1
39make install > $here/$zename/make_install.log 2>&1
Note: See TracBrowser for help on using the repository browser.