Ignore:
Timestamp:
May 11, 2014, 3:56:22 PM (11 years ago)
Author:
aslmd
Message:

MESOSCALE. Adapted the mesoscale model to previous commit to LMD GCM physics where number of scatterers is no longer set at compiling time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/NETCDF/gfortran_netcdf4

    r331 r1247  
    11#! /bin/bash
    22
     3ze_netcdf=netcdf-4.0.1
     4#ze_netcdf=netcdf-3.6.1
    35
    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'
     6wget ftp://ftp.unidata.ucar.edu/pub/netcdf/$ze_netcdf.tar.gz
     7tar xzvf $ze_netcdf.tar.gz
     8\rm $ze_netcdf.tar.gz
    269
    2710export FC=gfortran
     
    3518export CXXFLAGS="-O2"
    3619
    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
     20mv $ze_netcdf gfortran_$ze_netcdf
     21cd gfortran_$ze_netcdf
     22PREFIX=$PWD
     23if [[ "$ze_netcdf" == "netcdf-3.6.1" ]]
     24then
     25      cd src
     26fi
    4227
    43 #cd src
    44 ## Compilation
    45 #./configure
    46 #make check
    47 #make install
    48 
     28./configure --prefix=${PREFIX} #--disable-cxx
     29make > make.log 2>&1
     30make test > make.log 2>&1
     31make install > make.log 2>&1
Note: See TracChangeset for help on using the changeset viewer.