Changeset 5245
- Timestamp:
- Oct 18, 2024, 4:49:32 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install_amaury/install_lmdz.sh
r5242 r5245 754 754 echo "STOP: ICOSA_LMDZ compilation failed, exiting"; exit 1 755 755 fi 756 echo "Finished DYNAMICO compilation $(date)" 756 echo "Finished ICOSA_LMDZ compilation $(date)" 757 echo "# Running environment for icosa_lmdz" > icosalmdz.env 758 echo "# " >> icosalmdz.env 759 echo "export LD_LIBRARY_PATH=$ncdfdir/lib:$LD_LIBRARY_PATH" >> icosalmdz.env 757 760 fi 758 761 } … … 996 999 } 997 1000 1001 function run_bench_icosa { 1002 local bench_cmd="./bench.sh" 1003 1004 if [[ $icolmdz = 1 ]]; then 1005 cd "$MODEL/modipsl/modeles/ICOSA_LMDZ" 1006 if [[ $bench = 1 ]]; then 1007 namebench=bench_icolmdz_nbp10_79 1008 myget "3DBenchs/$namebench.tar.gz" 1009 mkdir $namebench 1010 tar xf "$namebench.tar.gz" -C "$namebench" --strip-components=1 1011 cd $namebench 1012 # copy executables 1013 if [[ ! -x ../bin/icosa_lmdz.exe ]]; then 1014 echo "STOP in icosa_lmdz bench, icosa_lmdz.exe executable not present"; exit 1 1015 fi 1016 cp ../bin/icosa_lmdz.exe . 1017 if [[ ! -x ../../XIOS/bin/xios_server.exe ]]; then 1018 echo "STOP in icosa_lmdz bench, XIOS executable not present"; exit 1 1019 fi 1020 cp ../../XIOS/bin/xios_server.exe . 1021 echo "STARTING ICOSA_LMDZ BENCH" 1022 date 1023 if (! $bench_cmd &> out.bench) || ! ( grep "Time elapsed" listing); then 1024 tail listing 1025 echo "ICOSA_LMDZ bench FAILED, exiting"; exit 1 1026 fi 1027 date 1028 echo "ICOSA_LMDZ bench finished" 1029 fi 1030 fi 1031 1032 } 998 1033 # If sourced: returns, else run setup 999 1034 if [[ ! "${BASH_SOURCE[0]}" = "$0" ]]; then return 0; fi … … 1016 1051 run_bench 1017 1052 compile_icolmdzor 1053 run_bench_icosa
Note: See TracChangeset
for help on using the changeset viewer.