- Timestamp:
- Jul 19, 2024, 5:45:16 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install_amaury/install_lmdz.sh
r5064 r5083 85 85 fi 86 86 87 optim_ debug=""87 optim_flag="-prod" 88 88 arch="local" 89 89 … … 174 174 esac;; 175 175 "-bench") bench=$2; shift; shift;; 176 "-debug") optim_ debug=-debug; shift;;176 "-debug") optim_flag="-debug"; shift;; 177 177 "-name") MODEL=$2; shift; shift;; 178 178 "-netcdf") netcdf=$2; shift; shift;; … … 496 496 echo "Compiling IOIPSL, the interface library with Netcdf $(date) (log: $ioipsllog)" 497 497 498 echo "$jobcmd ./makeioipsl_fcm -j $make_j -arch $arch " > compile.sh498 echo "$jobcmd ./makeioipsl_fcm -j $make_j -arch $arch $optim_flag" > compile.sh 499 499 chmod +x compile.sh 500 500 echo "Compiling IOIPSL using $(\cat compile.sh)" … … 584 584 echo "Compiling ORCHIDEE, the continental surface model (log $orchideelog) $(date)" 585 585 586 local xios_orchid opt_orc586 local xios_orchid 587 587 if [[ $with_xios = 1 ]]; then 588 588 xios_orchid="-xios"; … … 590 590 xios_orchid="-noxios" 591 591 fi 592 if [[ $optim_debug = "-debug" ]]; then593 opt_orc="-debug";594 else595 opt_orc="-prod"596 fi597 592 598 593 if [[ $parallel != "none" && ! -d src_parallel ]]; then 599 594 echo "STOP: Orchidee version too old for parallel support"; exit 1 600 595 fi 601 echo "$jobcmd ./makeorchidee_fcm -j $make_j $xios_orchid $opt _orc-parallel $parallel -arch $arch" > compile.sh596 echo "$jobcmd ./makeorchidee_fcm -j $make_j $xios_orchid $optim_flag -parallel $parallel -arch $arch" > compile.sh 602 597 chmod +x compile.sh 603 598 echo "Compiling ORCHIDEE using $(\cat compile.sh)" … … 663 658 664 659 # Compile 665 makelmdz="makelmdz_fcm $optim_ debug -arch $arch -j $make_j"660 makelmdz="makelmdz_fcm $optim_flag -arch $arch -j $make_j" 666 661 local para_compile_opt="-mem -parallel $parallel"; if [[ $parallel = "none" ]]; then para_compile_opt=""; fi 667 662 echo "$jobcmd ./$makelmdz $opt_rad $opt_cosp $opt_makelmdz_xios $opt_aer $opt_inlandsis $opt_isotopes -p $compphysiq -d ${grid_resolution} -v $fcm_veget_version $para_compile_opt gcm" > compile.sh … … 677 672 echo "STOP: Compilation failed, can't find the executable"; exit 1 678 673 else 679 echo "Compilation successful l, the executable is $exe_name $(date)"674 echo "Compilation successful, the executable is $exe_name $(date)" 680 675 fi 681 676 }
Note: See TracChangeset
for help on using the changeset viewer.