Changeset 5523


Ignore:
Timestamp:
Feb 5, 2025, 12:20:51 PM (5 months ago)
Author:
fhourdin
Message:

Various details in install_lmdz.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified BOL/script_install/install_lmdz.sh

    r5522 r5523  
    532532                sed -i'' -e "s/-I//" -e "s/-L//" "$MODEL/modipsl/modeles/ORCHIDEE/arch/arch-$arch.path"  # /!\ we only replace first occurence on purpose
    533533            fi
     534            if [[ $veget = "CMIP6" ]]; then  # bundled version has a different fcm convention
     535                sed -i'' -e "s/-I//" -e "s/-L//" "$MODEL/modipsl/modeles/ORCHIDEE/arch/arch-$arch.path"  # /!\ we only replace first occurence on purpose
     536            fi
    534537        fi
    535538    fi
     
    661664    # in case ksh is not installed on the pc
    662665    if [[ ! -x /bin/ksh ]]; then
    663       sed -i''  -e 's/ksh/bash/' ins_m_prec
     666      sed -i'' 's/ksh/bash/' ins_m_prec
     667      sed -i'' 's/ksh/bash/' rebuild/rebuild
    664668    fi
    665669    do_compile_sh "IOIPSL" "$jobcmd ./makeioipsl_fcm -j $make_j -arch $arch $optim_flag"
     
    703707    case $veget in
    704708        "none") fcm_veget_version="false";;
    705         "orch2.0" | "CMIP6") fcm_veget_version=orchidee2.0; fetch_rev=7906;;  # in previous tar we used 6592 but with some modifications to xios_orchidee.f90, which got integrated in 7906
     709#        "orch2.0" | "CMIP6") fcm_veget_version=orchidee2.0; fetch_rev=7906;;  # in previous tar we used 6592 but with some modifications to xios_orchidee.f90, which got integrated in 7906
     710        "orch2.0" | "CMIP6") fcm_veget_version=orchidee2.0;;  # in previous tar we used 6592 but with some modifications to xios_orchidee.f90, which got integrated in 7906
    706711        "orch2.2") fcm_veget_version=orchidee2.1; orcbranch="/branches/ORCHIDEE_2_2/ORCHIDEE" ;; # the bundled version
    707712        *) fetch_rev=$veget; fcm_veget_version=orchidee2.1;;  # /!\ arbitary rev only works for orch>=2.1
     
    791796function compile_lmdz {
    792797#-----------------------------------------------------------------------------
     798  if [[ $bench =   "tuto" ]]; then
     799      echo No need to compile if installing TUTORIAL
     800  else
    793801    install_arch "LMDZ"
    794802    cd "$LMDZPATH"
     
    827835        echo "Compilation successful, the executable is $exe_name $(date)"
    828836    fi
     837  fi
    829838}
    830839
     
    894903
    895904    if [[ $bench = "tuto" ]]; then
    896         myget "Training/tutorial.tar"; tar xf tutorial.tar; cd TUTORIAL
    897         ./init.sh
     905        myget "Training/tutorial.tar"; tar xf tutorial.tar
     906        echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
     907        echo A directory $PWD/TUTORIAL
     908        echo has been downloaded in which you can compile, intitialize
     909        echo and then run a simulation with a zoomed grid by running ./init.sh
     910        echo after modifying some input parameters in .def files in DEF/
     911        echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
    898912    elif [[ $bench = 1 ]]; then
    899913      rm -rf "BENCH${grid_resolution}"
     
    11181132            sed -i'' -e 's/^rad=.*$/rad=oldrad/' bin/compile
    11191133        elif [[ $rad = ecrad ]] ; then
    1120                         sed -i'' -e 's/^rad=.*$/rad=ecrad/' run.sh
    1121                         sed -i'' -e 's/^rad=.*$/rad=ecrad/' bin/compile
    1122                     fi
     1134                         sed -i'' -e 's/^rad=.*$/rad=ecrad/' run.sh
     1135                         sed -i'' -e 's/^rad=.*$/rad=ecrad/' bin/compile
     1136                     fi
    11231137        sed -i -e "s:^fcm=0:fcm=1:" bin/compile
    11241138        echo "Running 1D/run.sh, log in $(pwd)/run1d.log"
Note: See TracChangeset for help on using the changeset viewer.