Changeset 2050


Ignore:
Timestamp:
May 21, 2014, 3:25:38 PM (10 years ago)
Author:
Laurent Fairhead
Message:

New version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/instal1d.sh

    r2035 r2050  
    99# which  contains the single column version of the model.
    1010# 2) installs a series of test cases on LMDZ.../1dcases/
    11 # 3) compile the lmdz1.F with vertical resolution L39 and L40
     11# 3) compile the lmdz1.F with vertical resolution L59 and L40
    1212# 4) runs a subset of the cases
    1313###############################################################################
     
    1818toga=1
    1919twpice=1
     20#
     21llm=59
    2022
    2123# Check in ~lmdz/WWW/DistribG95 which 1d version to use
     
    4648LMDGCM=`pwd`
    4749LMDlibf=$LMDGCM/modipsl/modeles/LMDZ5/libf/
     50cd $LMDlibf
     51rev=`svn info -r BASE | grep vision | tail -1 | awk ' { print $NF } '`
     52cd $LMDGCM
    4853
    4954###############################################################################
     
    105110# Installing source files and compiling
    106111################################################################################
     112
     113if [ $rev -le 2015 ] ; then
    107114cd $LMDlibf
     115if [ -f phy1d/thermcell_dq.F90 ] ; then
     116   echo phy1d a deja ete modifie. On repart d une version sauvegardee
     117   if [ ! -d phy1dorig ] ; then
     118      echo Cas a retravailler : le phy1d d origine n est plus dispo
     119      exit
     120   fi
     121   mv phy1d phy1d$$
     122   cp -r phy1dorig phy1d
     123else
     124   cp -r phy1d phy1dorig # sauvegarde du phy1d d'origine
     125fi
    108126chmod +x ../tools/install_1d_src.sh
    109127../tools/install_1d_src.sh
     128fi
    110129
    111130##   Nettoyage
    112131\rm -r ${source}
    113132#
    114 cd ${LMDlibf}/..
     133cd ${LMDlibf}
     134   physique=lmd
     135if [ -d phy1d ] ; then
     136   physique=1d
     137fi
     138
     139cd ../
    115140\rm -f makefile
    116 ./makelmdz -d 39 -p 1d lmdz1d
     141./makelmdz -d ${llm} -p ${physique} lmdz1d
    117142if [ -f lmdz1d.e ] ; then
    118    mv lmdz1d.e lmdz1d_L39.e
     143   mv lmdz1d.e lmdz1d_L${llm}.e
    119144 echo Compilation successfull
    120145 for cas in amma ayotte case_e eq_rd_cv fire hapex92_init rico toga sanduref sandufast sanduslow twpice ; do
    121146    rm -f ${LMDGCM}/1dcases/$cas/lmdz1d.e
    122     ln -s `pwd`/lmdz1d_L39.e ${LMDGCM}/1dcases/$cas/lmdz1d.e
     147    ln -s `pwd`/lmdz1d_L${llm}.e ${LMDGCM}/1dcases/$cas/lmdz1d.e
    123148 done
    124149else
Note: See TracChangeset for help on using the changeset viewer.