- Timestamp:
- May 11, 2014, 3:56:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/NETCDF/gfortran_netcdf4
r331 r1247 1 1 #! /bin/bash 2 2 3 ze_netcdf=netcdf-4.0.1 4 #ze_netcdf=netcdf-3.6.1 3 5 4 ##wget http://www.lmd.jussieu.fr/~hourdin/PATCH_LMDZ4OR_G95/netcdf-3.6.1.tar.gz 5 ##gunzip netcdf-3.6.1.tar.gz 6 #tar xvf netcdf-3.6.1.tar 7 #cd netcdf-3.6.1 8 9 cp /donnees/emlmd/Downloads/Software/netcdf-4.0.1.tar.gz . 10 gunzip netcdf-4.0.1.tar.gz 11 tar xvf netcdf-4.0.1.tar 12 cd netcdf-4.0.1 13 14 #export CC=gcc 15 #export CXX=g++ 16 #export CPP='gcc -E' 17 #export FC=gfortran 18 #export F77=gfortran 19 #export F90=gfortran 20 #export CFLAGS='-O2 -DpgiFortran' 21 #export CXXFLAGS='-O2 -DpgiFortran' 22 #export CPPFLAGS='-DpgiFortran' 23 #export FFLAGS='-O2 -fno-second-underscore' 24 #export FCFLAGS='-O2 -fno-second-underscore' 25 #export F90FLAGS='-O2 -fno-second-underscore' 6 wget ftp://ftp.unidata.ucar.edu/pub/netcdf/$ze_netcdf.tar.gz 7 tar xzvf $ze_netcdf.tar.gz 8 \rm $ze_netcdf.tar.gz 26 9 27 10 export FC=gfortran … … 35 18 export CXXFLAGS="-O2" 36 19 37 mkdir /donnees/aslmd/MODELES/MESOSCALE_DEV/NETCDF/netcdf64-4.0.1_gfortran 38 ./configure --prefix=/donnees/aslmd/MODELES/MESOSCALE_DEV/NETCDF/netcdf64-4.0.1_gfortran #> configure.log 2>&1 39 make #> make.log 2>&1 40 make test #> make_test.log 2>&1 41 make install #> make_install.log 2>&1 20 mv $ze_netcdf gfortran_$ze_netcdf 21 cd gfortran_$ze_netcdf 22 PREFIX=$PWD 23 if [[ "$ze_netcdf" == "netcdf-3.6.1" ]] 24 then 25 cd src 26 fi 42 27 43 #cd src 44 ## Compilation 45 #./configure 46 #make check 47 #make install 48 28 ./configure --prefix=${PREFIX} #--disable-cxx 29 make > make.log 2>&1 30 make test > make.log 2>&1 31 make install > make.log 2>&1
Note: See TracChangeset
for help on using the changeset viewer.