Changeset 5180
- Timestamp:
- Sep 10, 2024, 1:43:56 PM (4 months ago)
- Location:
- BOL/script_install_amaury
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install_amaury/install_lmdz.sh
r5156 r5180 318 318 319 319 function 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 324 323 if [[ $(which "$logiciel") = "" ]]; then 325 324 echo "You must first install $logiciel on your system"; exit 1 … … 345 344 MODEL=$(readlink -e -f "$MODEL"); echo "MODEL: $MODEL" # absolute path 346 345 if [[ ! -d "$MODEL/modipsl" ]]; then 347 echo "##########################################################"348 346 echo "Downloading a slightly modified version of modipsl+LMDZ" 349 echo "##########################################################"350 347 cd "$MODEL" 351 348 getlog="$(pwd)/get.log" … … 353 350 myget "src_archives/$trusting/modipsl.$version.tar.gz" &>> get.log 354 351 echo "install_lmdz.sh wget_OK $(date)" 352 355 353 gunzip "modipsl.$version.tar.gz" &>> get.log 356 354 tar xf "modipsl.$version.tar" &>> get.log 357 355 rm "modipsl.$version.tar" 356 358 357 cd - &> /dev/null 359 358 fi … … 563 562 564 563 function get_orchidee_version { # Set / Check ORCHIDEE version 564 echo "Checking Orchidee source version" 565 565 local fetch_rev="" 566 566 orcbranch="" … … 577 577 578 578 if [[ -n $fetch_rev ]]; then 579 echo "IF YOU INSTALL ORCHIDEE THE VERY FIRST TIME, ASK for PASSWORD at orchidee-help@listes.ipsl.fr" 579 580 local curr_rev 580 581 curr_rev=$(svn info "$MODEL/modipsl/modeles/ORCHIDEE" | grep Revision: | cut -d ":" -f 2 | cut -c 2-) … … 584 585 echo "branch is $orcbranch" 585 586 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"587 587 cd "$MODEL/modipsl/modeles" 588 588 rm -rf ORCHIDEE … … 628 628 629 629 function get_lmdz_version { 630 echo "Checking LMDZ source version" 630 631 LMDZPATH=$(readlink -e -f "$MODEL/modipsl/modeles/LMD"*) 631 632 cd "$LMDZPATH" -
BOL/script_install_amaury/test_convergence.sh
r5156 r5180 55 55 56 56 # 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 58 58 for para in "none" "mpi_omp"; do 59 59 comp_bench "$rev1" "$rev2" "-cosp v1 -rad oldrad -parallel $para -veget none -compilephysiq lmd" # cosp v1 (no v2 because broken atm) … … 61 61 done 62 62 63 local origdim="$dim" 63 64 # 1D 64 65 dim="79" … … 69 70 dim="48x36x39" 70 71 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" 74 76 } 75 77 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 78 comp_full 5159 5017 79 comp_bench 5159 5150 "-xios -rad oldrad -parallel mpi_omp -veget none -compilephysiq lmd" # xios broken for 5017 82 80 83 81 … … 85 83 86 84 87
Note: See TracChangeset
for help on using the changeset viewer.