source: trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/NETCDF/gfortran_netcdf4

Last change on this file was 1753, checked in by aslmd, 8 years ago

online location of old netcdf files changed

  • Property svn:executable set to *
File size: 676 bytes
Line 
1#! /bin/bash
2
3ze_netcdf=netcdf-4.0.1
4#ze_netcdf=netcdf-3.6.1
5
6#wget ftp://ftp.unidata.ucar.edu/pub/netcdf/$ze_netcdf.tar.gz
7wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/$ze_netcdf.tar.gz
8tar xzvf $ze_netcdf.tar.gz
9\rm $ze_netcdf.tar.gz
10
11export FC=gfortran
12export FFLAGS=" -O2"
13export F90=gfortran
14export FCFLAGS="-O2 -ffree-form"
15export CPPFLAGS=""
16export CC=gcc
17export CFLAGS="-O2"
18export CXX=g++
19export CXXFLAGS="-O2"
20
21mv $ze_netcdf gfortran_$ze_netcdf
22cd gfortran_$ze_netcdf
23PREFIX=$PWD
24if [[ "$ze_netcdf" == "netcdf-3.6.1" ]]
25then
26      cd src
27fi
28
29./configure --prefix=${PREFIX} #--disable-cxx
30make > make.log 2>&1
31make test > make.log 2>&1
32make install > make.log 2>&1
Note: See TracBrowser for help on using the repository browser.