Changeset 1289 for palm/trunk/SCRIPTS/mbuild
- Timestamp:
- Mar 4, 2014 7:12:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r1275 r1289 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # comments translated from German to English 25 # fimm-, scirocco-, ibmy-, and sgi-specific code removed 25 26 # 26 27 # Former revisions: … … 85 86 compile_utility_programs=false 86 87 config_file=.mrun.config 87 fimm=false88 88 host=all 89 89 host_found=false … … 92 92 module_calls="" 93 93 util_compiled_localhost=false 94 scirocco=false95 94 silent=false 96 95 suf=f90 … … 189 188 190 189 191 192 [[ $local_host_real_name = scirocco ]] && scirocco=true193 [[ $local_host_real_name = fimm.bccs.uib.no ]] && fimm=true194 195 196 197 190 if [[ $local_host != ibms ]] 198 191 then … … 203 196 204 197 205 # determine the block conditions198 # DETERMINE THE BLOCK CONDITIONS 206 199 if [[ $block_conditions != none ]] 207 200 then … … 422 415 423 416 424 # GENER IERUNG DER AKTUELLEN MODELLVERSION FUER ALLE RECHNER-/UEBERSETZUNGS-425 # VERSIONEN, DIE IN DER KONFIGURATIONSDATEI GEFUNDEN WERDEN417 # GENERATE MODEL-VERSIONS FOR ALL HOST-BLOCKS 418 # FOUND IN THE CONFIGURATION-FILE 426 419 printf "\n *** scanning configuration file for host(s) ..." 427 420 … … 429 422 while read line 430 423 do 431 # KOMMENTARZEILEN UEBERSPRINGEN424 # SKIP COMMENT-LINES 432 425 [[ $(echo $line | cut -c1) = "#" ]] && continue 433 426 (( ihost = ihost + 1 )) … … 441 434 (( ih = ih + 1 )) 442 435 443 # determine remote host and conditions for the respective block444 # continue, only if this host has been chosen via -h option and if445 # conditions have been chosen via -K option436 # DETERMINE REMOTE HOST AND CONDITIONS FOR THE RESPECTIVE BLOCK 437 # CONTINUE, ONLY IF THIS HOST HAS BEEN CHOSEN VIA -h OPTION AND IF 438 # CONDITIONS HAVE BEEN CHOSEN VIA -K OPTION 446 439 remote_host_string=`echo ${hostline[$ih]} | cut -d" " -s -f3-` 447 440 remote_host=`echo $remote_host_string | cut -d" " -f1` … … 475 468 make_options="" 476 469 477 # IP-ADRESSE DES REMOTE-RECHNERS BESTIMMEN470 # DETERMINE IP-ADDRES OF THE REMOTE-HOST 478 471 case $remote_host in 479 472 (lccrayb) remote_addres=130.73.233.1;; … … 484 477 (lcrte) remote_addres=133.5.185.60;; 485 478 (lcsb) remote_addres=147.46.30.151;; 486 (lcsgib) remote_addres=130.73.232.102;;487 (lcsgih) remote_addres=130.75.4.101;;488 479 (lck) remote_addres=165.132.26.61;; 489 480 (lckiaps) remote_addres=118.128.66.223;; … … 496 487 (ibmku) remote_addres=133.5.4.129;; 497 488 (ibms) remote_addres=150.183.5.101;; 498 (ibmy) remote_addres=165.132.26.58;;499 489 (nech) remote_addres=136.172.44.192;; 500 490 (neck) remote_addres=133.5.178.11;; … … 509 499 510 500 511 # REMOTE-USERNAMEN ERMITTELN501 # DETERMINE REMOTE-USERNAME 512 502 line="" 513 503 found=false … … 537 527 538 528 539 # REMOTE-QUELLTEXTPFAD ERMITTELN529 # DETERMINE REMOTE-SOURCE-CODE-PATH 540 530 line="" 541 531 remote_source_path="" … … 572 562 573 563 574 # REMOTE-PFAD FUER MAKE-DEPOSITORY ERMITTELN564 # DETERMINE REMOTE-PATH FOR MAKE-DEPOSITORY 575 565 remote_md="" 576 566 line="" … … 611 601 612 602 613 # COMPILERNAMEN ERMITTELN603 # DETERMINE COMPILERNAME 614 604 line="" 615 605 found=false … … 639 629 640 630 641 # BEI BENUTZUNG EINES PARALLELEN COMPILERS MUSS AUCH EIN642 # SERIELLER COMPILERNAME ERMITTELT WERDEN631 # IN CASE OF PARALLEL EXECUTION (COMPILER FOR PARALLEL EXECUTION), 632 # A SERIAL COMPILERNAME MUST BE DETERMINED ALSO 643 633 if [[ $(echo $remote_host_string | grep -c parallel) = 1 ]] 644 634 then … … 674 664 675 665 676 # PRAEPROZESSOR-OPTIONEN/DIREKTIVEN ERMITTELN666 # DETERMINE PREPROCESSOR-OPTIONS AND DIRECTIVES 677 667 line="" 678 668 found=false … … 688 678 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 689 679 then 690 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN680 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 691 681 cpp_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 692 682 found=true … … 703 693 704 694 705 # RECHNERSPEZIFISCHE CPP-DIREKTIVEN HINZUFUEGEN695 # ADD HOST-SPECIFIC PREPROCESSOR-DIRECTIVES 706 696 for string in $remote_host_string 707 697 do … … 727 717 728 718 729 # get netCDF options719 # GET netCDF OPTIONS 730 720 line="" 731 721 grep "$remote_host_string" $config_file | grep "%netcdf_inc" > $tmp_mbuild … … 740 730 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 741 731 then 742 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN732 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 743 733 netcdf_inc=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 744 734 fi … … 758 748 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 759 749 then 760 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN750 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 761 751 netcdf_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 762 752 fi … … 766 756 767 757 768 # get fftw options758 # GET FFTW OPTIONS 769 759 line="" 770 760 grep "$remote_host_string" $config_file | grep "%fftw_inc" > $tmp_mbuild … … 779 769 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 780 770 then 781 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN771 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 782 772 fftw_inc=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 783 773 fi … … 797 787 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 798 788 then 799 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN789 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 800 790 fftw_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 801 791 fi … … 805 795 806 796 807 # get make options797 # GET MAKE OPTIONS 808 798 line="" 809 799 found=false … … 819 809 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 820 810 then 821 # remove colons from directive string811 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 822 812 make_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 823 813 … … 828 818 829 819 830 # COMPILEROPTIONEN ERMITTELN820 # GET COMPILER OPTIONS 831 821 line="" 832 822 found=false … … 842 832 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 843 833 then 844 # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN834 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 845 835 compiler_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 846 836 found=true 847 837 848 # add include paths for netCDF and fftw838 # ADD INCLUDE PATHS FOR netCDF AND FFTW 849 839 compiler_options="$compiler_options $netcdf_inc $fftw_inc" 850 840 fi … … 860 850 861 851 862 # get login init commands, "::" is replacing a space852 # GET LOGIN INIT COMMANDS 863 853 line="" 864 854 grep "$remote_host_string" $config_file | grep "%login_init_cmd" > $tmp_mbuild … … 873 863 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 874 864 then 875 # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN865 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 876 866 init_cmds=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 877 867 init_cmds="${init_cmds};" … … 880 870 881 871 882 # get modules to be loaded872 # GET MODULES TO BE LOADED 883 873 line="" 884 874 grep "$remote_host_string" $config_file | grep "%modules" > $tmp_mbuild … … 893 883 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 894 884 then 895 # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN885 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 896 886 modules=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 897 887 fi … … 900 890 901 891 902 # LADER-OPTIONEN ERMITTELN892 # GET LINKER OPTIONS 903 893 line="" 904 894 found=false … … 914 904 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 915 905 then 916 # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN906 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 917 907 loader_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 918 908 found=true 919 909 920 # add netCDF- and fftw-library910 # ADD netCDF- AND FFTW-LIBRARY 921 911 loader_options="$loader_options $netcdf_lib $fftw_lib" 922 912 fi … … 1043 1033 1044 1034 1045 # make on remote host1035 # MAKE ON REMOTE HOST 1046 1036 if [[ $remote_host != $local_host ]] 1047 1037 then … … 1049 1039 then 1050 1040 1051 # AKTUELLE QUELLTEXTVERSION INS REMOTE-QUELLTEXTVERZEICHNIS KOPIEREN1052 # FALLS DIESES NOCH NICHT EXISTIERT, WIRD ES ERZEUGT1041 # COPY CURRENT SOURCE CODE TO SOURCE-CODE DIRECTORY ON THE REMOTE HOST 1042 # CREATE THIS DIRECTORY, IF IT DOES NOT EXIST 1053 1043 echo " *** copying \"${mainprog}_sources.tar\" to \"${remote_addres}:${remote_md}/\" " 1054 1044 if [[ $remote_host != lctit ]] … … 1056 1046 ssh ${remote_username}@${remote_addres} "[[ ! -d ${remote_md} ]] && (echo \" *** ${remote_md} will be created\"; mkdir -p ${remote_md})" 1057 1047 else 1058 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS 1059 # MIT SSH, DESHALB AUFRUF PER PIPE 1048 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1060 1049 print "[[ ! -d ${remote_md} ]] && (echo \" *** ${remote_md} will be created\"; mkdir -p ${remote_md})" | ssh ${remote_username}@${remote_addres} 2>&1 1061 1050 fi … … 1065 1054 1066 1055 1067 # FALLS VORHANDEN, LETZTE VERSION AUF DEM REMOTE-RECHNER AUSPACKEN1056 # UNTAR PREVIOUS UPDATE ON REMOTE HOST, IF EXISTING 1068 1057 echo " *** untar previous update on remote host, if existing" 1069 1058 if [[ $remote_host != lctit ]] … … 1071 1060 ssh ${remote_username}@${remote_addres} "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]] && tar -xf ${mainprog}_current_version.tar" 1072 1061 else 1073 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS 1074 # MIT SSH, DESHALB AUFRUF PER PIPE 1062 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1075 1063 print "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]] && tar -xf ${mainprog}_current_version.tar" | ssh ${remote_username}@${remote_addres} 2>&1 1076 1064 fi 1077 1065 1078 1066 1079 # AKTUELLE QUELLTEXTVERSION AUF REMOTE-RECHNER AUSPACKEN1080 echo " *** untar actualsources on remote host"1067 # UNTAR CURRENT SOURCES ON REMOTE HOST 1068 echo " *** untar current sources on remote host" 1081 1069 if [[ $remote_host != lctit ]] 1082 1070 then 1083 1071 ssh ${remote_username}@${remote_addres} "cd ${remote_md}; tar -xf ${mainprog}_sources.tar" 1084 1072 else 1085 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS 1086 # MIT SSH, DESHALB AUFRUF PER PIPE 1073 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1087 1074 print "cd ${remote_md}; tar -xf ${mainprog}_sources.tar" | ssh ${remote_username}@${remote_addres} 2>&1 1088 1075 fi 1089 1076 1090 1077 1091 # MAKE MIT ZUVOR ERMITTELTEN OPTIONEN AUF REMOTE RECHNER AUSFUEHREN1092 # KOMMANDOUEBERGABE AN SSH PER PIPE, DA SO DIE SYSTEM- UND1093 # BENUTZERPROFILE VOLLSTAENDIG AUSGEFUEHRT WERDEN (SONST FEHLENMAKE1094 # Z.B. DIE PFADE ZUM COMPILER)1078 # EXECUTE MAKE WITH THOSE OPTIONS DETERMINED ABOVE 1079 # COMMANDS WILL BE COMMUNICATED TO SSH VIA PIPE, SINCE THIS WAY THE SYSTEM- AND 1080 # USER-PROFILES OF THE SHELL ARE COMPLETELY EXECUTED (OTHERWISE, MAKE 1081 # WILL E.G. MISS THE COMPILER-PATHS) 1095 1082 echo " *** execute \"make\" on remote host" 1096 1083 1097 1084 1098 # generate make call with make options1085 # GENERATE MAKE CALL WITH MAKE OPTIONS 1099 1086 if [[ $remote_host = nech ]] 1100 1087 then … … 1104 1091 fi 1105 1092 1106 # generate command to load modules, if modules are given1093 # GENERATE COMMAND TO LOAD MODULES, IF MODULES ARE GIVEN 1107 1094 if [[ "$modules" != "" ]] 1108 1095 then … … 1113 1100 module_calls="module load ${modules};" 1114 1101 fi 1115 1116 # bugfix for wrong netcdf module1117 if [[ $remote_host = lcsgib || $remote_host = lcsgih ]]1118 then1119 if [[ $(echo $module_calls | grep -c netcdf/3.6.3-intel) != 0 ]]1120 then1121 module_calls="$module_calls export LD_LIBRARY_PATH=/sw/dataformats/netcdf/3.6.3-intel/lib:\$LD_LIBRARY_PATH;"1122 fi1123 fi1124 1102 else 1125 1103 module_calls="" 1126 1104 fi 1127 1105 1128 if [[ $remote_host = ibmkisti || $remote_host = ibms || $remote_host = ibmy]]1106 if [[ $remote_host = ibmkisti || $remote_host = ibms ]] 1129 1107 then 1130 1108 … … 1135 1113 1136 1114 print "$init_cmds $module_calls export OBJECT_MODE=64; cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll 1137 1138 elif [[ $remote_host = lcsgib || $remote_host = lcsgih ]]1139 then1140 # print ". /usr/share/modules/init/bash; $module_calls cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll1141 print "$init_cmds $module_calls cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll1142 1115 1143 1116 elif [[ $remote_host = lctit ]] … … 1186 1159 1187 1160 1188 # NEUE VERSION AUF REMOTE-RECHNER ZUSAMMENPACKEN1161 # TAR UPDATED VERSION ON THE REMOTE HOST 1189 1162 printf "\n *** tar update on remote host ..." 1190 1163 if [[ $remote_host != lctit ]] … … 1192 1165 ssh ${remote_username}@${remote_addres} "cd ${remote_md}; chmod u+w *; tar -cf ${mainprog}_current_version.tar ${mainprog} *.f90 *.o *.mod" 1193 1166 else 1194 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS 1195 # MIT SSH, DESHALB AUFRUF PER PIPE 1167 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1196 1168 print "cd ${remote_md}; chmod u+w *; tar -cf ${mainprog}_current_version.tar ${mainprog} *.f90 *.o *.mod" | ssh ${remote_username}@${remote_addres} 2>&1 1197 1169 fi 1198 1170 1199 1171 1200 # AKTUELLES VERSIONSVERZEICHNIS AUF REMOTE-RECHNER BEREINIGEN 1201 # printf "\n *** \"make clean\" on remote host ..." 1202 # ssh ${remote_username}@${remote_addres} "cd ${remote_md}; make clean; rm ${mainprog}_sources.tar; rm *.f90 Makefile" 1203 # printf "\n" 1204 1205 1206 1207 1208 # GLEICHE AKTIONEN FUER DIE UTILITY-PROGRAMME DURCHFUEHREN 1209 # AKTUELLE QUELLTEXTVERSION INS REMOTE-QUELLTEXTVERZEICHNIS KOPIEREN 1210 # FALLS DIESES NOCH NICHT EXISTIERT, WIRD ES ERZEUGT 1172 1173 # DO THE SAME THINGS FOR THE UTILITY-ROUTINES: 1174 # COPY CURRENT SOURCE CODE TO SOURCE-CODE DIRECTORY ON THE REMOTE HOST 1175 # CREATE THIS DIRECTORY, IF IT DOES NOT EXIST 1211 1176 elif [[ $compile_utility_programs = true ]] 1212 1177 then … … 1220 1185 ssh ${remote_username}@${remote_addres} "[[ ! -d ${remote_ud} ]] && (echo \" *** ${remote_ud} will be created\"; mkdir -p ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]] && (echo \" *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p ${remote_ud}/../SCRIPTS)" 1221 1186 else 1222 # TIT ERLAUBT NUR DIE AUSFUEHRUNG GANZ BESTIMMTER KOMMANDOS 1223 # MIT SSH, DESHALB AUFRUF PER PIPE 1187 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1224 1188 print "[[ ! -d ${remote_ud} ]] && (echo \" *** ${remote_ud} will be created\"; mkdir -p ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]] && (echo \" *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p ${remote_ud}/../SCRIPTS)" | ssh ${remote_username}@${remote_addres} 2>&1 1225 1189 fi 1226 1190 1227 # KOPIEREN DER SCRIPTE1191 # COPY SHELL-SCRIPTS 1228 1192 scp batch_scp mbuild mrun process_dvr_output .dvrserver.config subjob batch_nc2vdf nc2vdf nc2vdf.ncl nc2vdf.config ${remote_username}@${remote_addres}:${remote_ud}/../SCRIPTS > /dev/null 1229 1193 … … 1232 1196 1233 1197 1234 # KOPIEREN DER UTILITY-PROGRAMME1198 # COPY UTILITY-ROUTINES 1235 1199 scp Makefile *.f90 ${remote_username}@${remote_addres}:${remote_ud} > /dev/null 1236 1200 1237 1201 1238 1202 1239 # MAKE MIT ZUVOR ERMITTELTEN OPTIONEN AUF REMOTE RECHNER AUSFUEHREN1240 # KOMMANDOUEBERGABE AN SSH PER PIPE, DA SO DIE SYSTEM- UND1241 # BENUTZERPROFILE VOLLSTAENDIG AUSGEFUEHRT WERDEN (SONST FEHLENMAKE1242 # Z.B. DIE PFADE ZUM COMPILER)1203 # EXECUTE MAKE WITH THOSE OPTIONS DETERMINED ABOVE 1204 # COMMANDS WILL BE COMMUNICATED TO SSH VIA PIPE, SINCE THIS WAY THE SYSTEM- AND 1205 # USER-PROFILES OF THE SHELL ARE COMPLETELY EXECUTED (OTHERWISE, MAKE 1206 # WILL E.G. MISS THE COMPILER-PATHS) 1243 1207 echo " *** execute \"make\" on remote host" 1244 1208 … … 1250 1214 fi 1251 1215 1252 # generate command to load modules, if modules are given1216 # GENERATE COMMAND TO LOAD MODULES, IF MODULES ARE GIVEN 1253 1217 if [[ "$modules" != "" ]] 1254 1218 then … … 1259 1223 module_calls="module load ${modules};" 1260 1224 fi 1261 1262 # bugfix for wrong netcdf module1263 if [[ $remote_host = lcsgib || $remote_host = lcsgih ]]1264 then1265 if [[ $(echo $module_calls | grep -c netcdf/3.6.3-intel) != 0 ]]1266 then1267 module_calls="$module_calls export LD_LIBRARY_PATH=/sw/dataformats/netcdf/3.6.3-intel/lib:\$LD_LIBRARY_PATH;"1268 fi1269 fi1270 1225 else 1271 1226 module_calls="" … … 1273 1228 1274 1229 1275 if [[ $remote_host = ibms || $remote_host = ibmy]]1230 if [[ $remote_host = ibms ]] 1276 1231 then 1277 1232 … … 1303 1258 fi 1304 1259 1305 fi # END E UEBERSETZUNG DER UTILITY-PROGRAMME1260 fi # END OF COMPILING UTILITY-ROUTINES 1306 1261 1307 1262 rm -rf ${remote_host}_last_make_protokoll 1308 1263 1309 # make on local host1264 # MAKE ON LOCAL HOST 1310 1265 else 1311 1266 1312 # workaround forlcxe61267 # INIT WORKAROUND FOR lcxe6 1313 1268 if [[ $remote_host = lcxe6 || $remote_host = lccrayb || $remote_host = lccrayf || $remote_host = lccrayh ]] 1314 1269 then … … 1318 1273 fi 1319 1274 1320 # first load modules, if given1275 # FIRST LOAD MODULES, IF GIVEN 1321 1276 if [[ "$modules" != "" ]] 1322 1277 then … … 1336 1291 then 1337 1292 1338 # DEPOSITORY VERZEICHNIS ERZEUGEN, FALLS NOCH NICHT VORHANDEN1293 # CREATE MAKE-DEPOSITORY, IF IT DOES NOT EXIST 1339 1294 eval remote_md=$remote_md 1340 1295 if [[ ! -d $remote_md ]] … … 1353 1308 fi 1354 1309 1355 # QUELLTEXT-DATEIEN AUS REPOSITORY INS DEPOSITORY KOPIEREN1310 # COPY SOURCE-CODE FROM REPOSITORY TO MAKE-DEPOSITORY 1356 1311 echo " " 1357 1312 echo " *** updating sources in $remote_md" … … 1360 1315 tar xf ${mainprog}_sources.tar 1361 1316 1362 # MAKE MIT ZUVOR ERMITTELTEN OPTIONEN AUF LOKALEM RECHNER AUSFUEHREN1317 # CALL MAKE ON LOCAL HOST USING THE OPTIONS DETERMINED FURTHER ABOVE 1363 1318 echo " " 1364 1319 echo " *** execute \"make\" on local host" … … 1423 1378 fi 1424 1379 1425 # COMPILE CHECK_NAMELIST_FILES (ONLY FOR ONE BRANCH on LOCALHOST NEEDED) 1426 1380 # COMPILE CHECK_NAMELIST_FILES (ONLY FOR ONE BRANCH on LOCALHOST NEEDED) 1427 1381 printf "\n\n" 1428 1382 echo " *** compiling check_namelist_files ..." 1429 1383 1430 # GET CHECK OPTIONS1384 # GET CHECK OPTIONS 1431 1385 line="" 1432 1386 found=false … … 1442 1396 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 1443 1397 then 1444 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING UND ALLE -D ENTFERNEN1398 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 1445 1399 line="$line " 1446 1400 copts_check=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g' | sed 's/-D[^ ]* //g' | sed 's/ -D.*//g'` … … 1498 1452 rm -f hosts_found_in_config_file 1499 1453 rm -f ${local_source_path}/${mainprog}_sources_check.tar 1500
Note: See TracChangeset
for help on using the changeset viewer.