Changeset 475 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Feb 4, 2010 2:26:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r440 r475 196 196 # 18/12/09 - Carolin- modification of archiving (permq) 197 197 # 01/02/10 - Siggi - adapted for lcxt5m and lckyoto (Fujitsu HX600) 198 # 03/02/10 - Siggi - make options (mopts) to be set by configuration file 199 # implemented 198 200 199 201 … … 2121 2123 if [[ $do_compile = true ]] 2122 2124 then 2125 if [[ "$mopts" != "" ]] 2126 then 2127 spalte1=make-options:; spalte2=$mopts 2128 printf "| $spalte1$spalte2 | \n" 2129 zeile=$(echo "$mopts" | cut -c41-) 2130 while [[ "$zeile" != "" ]] 2131 do 2132 spalte1="" 2133 spalte2=$zeile 2134 printf "| $spalte1$spalte2 | \n" 2135 zeile=$(echo "$zeile" | cut -c41-) 2136 done 2137 fi 2138 2123 2139 spalte1=cpp-directives:; spalte2=$cpp_options 2124 2140 printf "| $spalte1$spalte2 | \n" … … 2370 2386 cp SOURCES_FOR_RUN_$fname/* $TEMPDIR_COMPILE 2371 2387 2372 # FALLS USER-INTERFACE VORHANDEN UND AUF DATEI MIT ANDEREM NAMEN2373 # ALS user_interface.f90 LIEGT, DIESEN GEAENDERTEN NAMEN INS2374 # MAKEFILE EINTRAGEN2375 # cd $TEMPDIR_COMPILE2376 # interface_file=`grep -l "END SUBROUTINE user_parin" $source_list`2377 # if [[ "$interface_file" != "" ]]2378 # then2379 # interface_file=`echo $interface_file | cut -d"." -f1`2380 # mv Makefile Makefile_old2381 # sed "s/user_interface/$interface_file/g" Makefile_old > Makefile2382 # fi2383 # cd - > /dev/null2384 2388 else 2389 2385 2390 cp $executable ${TEMPDIR}/a.out 2391 2386 2392 fi 2387 2393 2388 2394 2389 2395 # WECHSEL IN TEMPORAEREN KATALOG 2390 cd $TEMPDIR2396 cd $TEMPDIR 2391 2397 printf "\n *** changed to temporary directory: $TEMPDIR" 2392 2398 … … 2418 2424 printf " *** compilation with make using following options:\n" 2419 2425 printf " make depository: $make_depository" 2426 if [[ "$mopts" != "" ]] 2427 then 2428 printf " make options: $mopts\n" 2429 fi 2420 2430 printf " compilername: $compiler_name\n" 2421 printf " options:$fopts\n"2431 printf " compiler options: $fopts\n" 2422 2432 printf " preprocessor-directives: $cpp_options \n" 2423 2433 printf " linker-options: $lopts \n" … … 2426 2436 if [[ $localhost = nech ]] 2427 2437 then 2428 ssh 136.172.44.192 -l $usern ". /SX/opt/etc/initsx.sh; cd \$HOME/work/${usern}.$kennung; sxmake -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" "2438 ssh 136.172.44.192 -l $usern ". /SX/opt/etc/initsx.sh; cd \$HOME/work/${usern}.$kennung; sxmake $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" " 2429 2439 cp $TEMPDIR_COMPILE/a.out . 2430 2440 [[ $? != 0 ]] && compile_error=true … … 2433 2443 then 2434 2444 printf " compiler is called via ssh on \"plogin1\" \n" 2435 ssh plogin1 -l $usern "export PATH=/sw/ibm/xlf/12.1.0.3/usr/bin:$PATH; cd $TEMPDIR; make -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" "2445 ssh plogin1 -l $usern "export PATH=/sw/ibm/xlf/12.1.0.3/usr/bin:$PATH; cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" " 2436 2446 [[ ! -f a.out ]] && compile_error=true 2437 2447 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN … … 2439 2449 then 2440 2450 printf " compiler is called via ssh on \"bicegate\" using module \"$mpilib\" \n" 2441 ssh 130.73.232.103 -l $usern ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" "2451 ssh 130.73.232.103 -l $usern ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" " 2442 2452 [[ ! -f a.out ]] && compile_error=true 2443 2453 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN … … 2445 2455 then 2446 2456 printf " compiler is called via ssh on \"hicegate2\" using module \"$mpilib\" \n" 2447 ssh 130.75.4.103 -l $usern ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make-f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" 2>&1 "2457 ssh 130.75.4.103 -l $usern ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" 2>&1 " 2448 2458 [[ ! -f a.out ]] && compile_error=true 2449 2459 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN 2450 2460 else 2451 2461 [[ $localhost = lctit ]] && export LM_LICENSE_FILE=27050@tggls 2452 make -f Makefile PROG=a.out F90=$compiler_name COPT="$cpp_options" F90FLAGS="$fopts" LDFLAGS="$lopts"2462 make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT="$cpp_options" F90FLAGS="$fopts" LDFLAGS="$lopts" 2453 2463 fi 2454 2464
Note: See TracChangeset
for help on using the changeset viewer.