Changeset 5523
- Timestamp:
- Feb 5, 2025, 12:20:51 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified BOL/script_install/install_lmdz.sh ¶
r5522 r5523 532 532 sed -i'' -e "s/-I//" -e "s/-L//" "$MODEL/modipsl/modeles/ORCHIDEE/arch/arch-$arch.path" # /!\ we only replace first occurence on purpose 533 533 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 534 537 fi 535 538 fi … … 661 664 # in case ksh is not installed on the pc 662 665 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 664 668 fi 665 669 do_compile_sh "IOIPSL" "$jobcmd ./makeioipsl_fcm -j $make_j -arch $arch $optim_flag" … … 703 707 case $veget in 704 708 "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 706 711 "orch2.2") fcm_veget_version=orchidee2.1; orcbranch="/branches/ORCHIDEE_2_2/ORCHIDEE" ;; # the bundled version 707 712 *) fetch_rev=$veget; fcm_veget_version=orchidee2.1;; # /!\ arbitary rev only works for orch>=2.1 … … 791 796 function compile_lmdz { 792 797 #----------------------------------------------------------------------------- 798 if [[ $bench = "tuto" ]]; then 799 echo No need to compile if installing TUTORIAL 800 else 793 801 install_arch "LMDZ" 794 802 cd "$LMDZPATH" … … 827 835 echo "Compilation successful, the executable is $exe_name $(date)" 828 836 fi 837 fi 829 838 } 830 839 … … 894 903 895 904 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 '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' 898 912 elif [[ $bench = 1 ]]; then 899 913 rm -rf "BENCH${grid_resolution}" … … 1118 1132 sed -i'' -e 's/^rad=.*$/rad=oldrad/' bin/compile 1119 1133 elif [[ $rad = ecrad ]] ; then 1120 1121 1122 1134 sed -i'' -e 's/^rad=.*$/rad=ecrad/' run.sh 1135 sed -i'' -e 's/^rad=.*$/rad=ecrad/' bin/compile 1136 fi 1123 1137 sed -i -e "s:^fcm=0:fcm=1:" bin/compile 1124 1138 echo "Running 1D/run.sh, log in $(pwd)/run1d.log"
Note: See TracChangeset
for help on using the changeset viewer.