Changeset 5180


Ignore:
Timestamp:
Sep 10, 2024, 1:43:56 PM (4 months ago)
Author:
abarral
Message:

Improve messages clarity

Location:
BOL/script_install_amaury
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r5156 r5180  
    318318
    319319function check_available_software {
    320     echo "################################################################"
    321     echo "Check if required software is available"
    322     echo "################################################################"
    323     for logiciel in wget tar gzip make gcc cmake m4 c++; do
     320    local required_soft=("wget" "tar" "gzip" "make" "gcc" "cmake" "m4" "c++")
     321    echo "Checking if required software is available (${required_soft[*]})"
     322    for logiciel in "${required_soft[@]}"; do
    324323        if [[ $(which "$logiciel") = "" ]]; then
    325324            echo "You must first install $logiciel on your system"; exit 1
     
    345344    MODEL=$(readlink -e -f "$MODEL"); echo "MODEL: $MODEL"  # absolute path
    346345    if [[ ! -d "$MODEL/modipsl" ]]; then
    347         echo "##########################################################"
    348346        echo "Downloading a slightly modified version of modipsl+LMDZ"
    349         echo "##########################################################"
    350347        cd "$MODEL"
    351348        getlog="$(pwd)/get.log"
     
    353350        myget "src_archives/$trusting/modipsl.$version.tar.gz" &>> get.log
    354351        echo "install_lmdz.sh wget_OK $(date)"
     352
    355353        gunzip "modipsl.$version.tar.gz" &>> get.log
    356354        tar xf "modipsl.$version.tar" &>> get.log
    357355        rm "modipsl.$version.tar"
     356
    358357        cd - &> /dev/null
    359358    fi
     
    563562
    564563function get_orchidee_version {  # Set / Check ORCHIDEE version
     564    echo "Checking Orchidee source version"
    565565    local fetch_rev=""
    566566    orcbranch=""
     
    577577
    578578    if [[ -n $fetch_rev ]]; then
     579        echo "IF YOU INSTALL ORCHIDEE THE VERY FIRST TIME, ASK for PASSWORD at orchidee-help@listes.ipsl.fr"
    579580        local curr_rev
    580581        curr_rev=$(svn info "$MODEL/modipsl/modeles/ORCHIDEE" | grep Revision: | cut -d ":" -f 2 | cut -c 2-)
     
    584585            echo "branch is $orcbranch"
    585586            if [[ $fetch_rev -lt 4465 ]]; then echo 'ORCHIDEE version must be >=4465, exiting'; exit 1; fi
    586             echo "IF YOU INSTALL ORCHIDEE THE VERY FIRST TIME, ASK for PASSWORD at orchidee-help@listes.ipsl.fr"
    587587            cd "$MODEL/modipsl/modeles"
    588588            rm -rf ORCHIDEE
     
    628628
    629629function get_lmdz_version {
     630    echo "Checking LMDZ source version"
    630631    LMDZPATH=$(readlink -e -f "$MODEL/modipsl/modeles/LMD"*)
    631632    cd "$LMDZPATH"
  • BOL/script_install_amaury/test_convergence.sh

    r5156 r5180  
    5555
    5656  # Check some additional params on sparse configs
    57   comp_bench "$rev1" "$rev2" "-xios -rad oldrad -parallel $para -veget none -compilephysiq lmd"  # xios
     57#  comp_bench "$rev1" "$rev2" "-xios -rad oldrad -parallel $para -veget none -compilephysiq lmd"  # xios broken for 5017
    5858  for para in "none" "mpi_omp"; do
    5959    comp_bench "$rev1" "$rev2" "-cosp v1 -rad oldrad -parallel $para -veget none -compilephysiq lmd"  # cosp v1 (no v2 because broken atm)
     
    6161  done
    6262
     63  local origdim="$dim"
    6364  # 1D
    6465  dim="79"
     
    6970  dim="48x36x39"
    7071  file_to_check="LMDZ/modipsl/modeles/LMDZ/BENCH$dim/restart.nc"
    71   for para in "none" "mpi_omp"; do
    72     comp_bench "$rev1" "$rev2" "-rad oldrad -parallel $para -veget none -compilephysiq lmdiso -d $dim"
    73   done
     72  comp_bench "$rev1" "$rev2" "-rad oldrad -parallel none -veget none -compilephysiq lmdiso -d $dim"
     73
     74  dim="$origdim"
     75  file_to_check="LMDZ/modipsl/modeles/LMDZ/BENCH$dim/restart.nc"
    7476}
    7577
    76 #comp_bench 4938 4946 "-rad oldrad -parallel mpi_omp -veget none -compilephysiq lmd"
    77 #comp_bench 4938 4946 "-rad ecrad -parallel mpi_omp -veget none -compilephysiq lmd"
    78 #comp_bench 4938 4946 "-rad ecrad -parallel none -veget none -compilephysiq lmd"
    79 #comp_bench 4950 4946 "-rad oldrad -parallel none -veget none -compilephysiq lmd"
    80 
    81 comp_full 5017 5155
     78comp_full 5159 5017
     79comp_bench 5159 5150 "-xios -rad oldrad -parallel mpi_omp -veget none -compilephysiq lmd"  # xios broken for 5017
    8280
    8381
     
    8583
    8684
    87 
Note: See TracChangeset for help on using the changeset viewer.