Changeset 83 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Apr 19, 2007 4:27:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r82 r83 252 252 # FEHLERBEHANDLUNG 253 253 # BEI EXIT: 254 trap 'rm -rf tmp_mrun254 trap 'rm -rf $working_directory/tmp_mrun 255 255 if [[ $locat != localhost ]] 256 256 then … … 318 318 319 319 # BEI TERMINAL-BREAK: 320 trap 'rm -rf tmp_mrun320 trap 'rm -rf $working_directory/tmp_mrun 321 321 [[ $tmpcreate = true ]] && (cd; rm -rf $TEMPDIR) 322 322 if [[ -f ~/job_queue/JOBINFO.$QSUB_REQID ]] … … 472 472 HOSTNAME=`echo $line | cut -d" " -s -f2` 473 473 host_identifier=`echo $line | cut -d" " -s -f3` 474 if [[ "$HOSTNAME" = $localhost_realname]]474 if [[ $localhost_realname = $HOSTNAME ]] 475 475 then 476 476 localhost=$host_identifier … … 547 547 (ibm|ibmb|ibmh|ibms|ibmy|nech|neck|lctit|unics) true;; 548 548 (*) printf "\n" 549 printf "\n +++ execution host \"$host\" not admitted for MRUN,"550 printf "\n or NQS not available on execution host!"549 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" 550 printf "\n is not available" 551 551 locat=nqs; (( iec = 0 )); exit;; 552 552 esac … … 665 665 case $host in 666 666 (ibm|ibms|ibmy|lctit|nech|neck|unics) true;; 667 (*) printf "\n +++ no queueing system available on execution host \"$host\"" 667 (*) printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" 668 printf "\n is not available" 668 669 locat=nqs; exit;; 669 670 esac … … 789 790 export interpreted_config_file=.icf.$RANDOM 790 791 791 # case $localhost_realname in792 # (caurus|twister) interpret_config.hp;;793 # (bora|breva|elephanta|gallego|gregale|hababai|maestro|orkan|ostria) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/muksoft/packages/intel_ifc/8.1/lib/; interpret_config_9.x;;794 # (levanto|vorias) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/muksoft/packages/intel/ifort/9.1.037/lib/; interpret_config_9.x_levanto;;795 # (quanero) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel_fc_80/lib; interpret_config_9.x;;796 # (*) interpret_config.x;;797 # esac798 792 799 793 … … 925 919 (ibm|ibmb|ibmh|ibms|ibmy|lctit|nech|neck|unics) true;; 926 920 (*) printf "\n" 927 printf "\n +++ execution host \"$host\" not admitted for MRUN,"928 printf "\n or no queueing system available on execution host!"921 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" 922 printf "\n is not available" 929 923 locat=nqs; (( iec = 0 )); exit;; 930 924 esac … … 1079 1073 1080 1074 1081 # EVTL. NETCDF-UNTERSTUETZUNG SETZEN1082 # case $host in1083 # (decalpha) netcdf_support=true1084 # netcdf_path=/usr/local/netcdf-3.5.1;;1085 # (ibmb|ibmh) netcdf_support=true1086 # netcdf_path=/aws/dataformats/netcdf-3.6.0-p1/64-32;;1087 # (ibms) netcdf_support=true1088 # netcdf_path=/applic/lib/NETCDF64;;1089 # (ibmy) netcdf_support=true1090 # netcdf_path=/usr1/users/raasch/pub/netcdf-3.6.0-p1;;1091 # (lcmuk) if [[ $scirocco = true ]]1092 # then1093 # netcdf_path=/opt/netcdf/3.6.2-beta41094 # elif [[ $fimm = true ]]1095 # then1096 # netcdf_path=/local/netcdf1097 # else1098 # netcdf_path=/muksoft/packages/netcdf/linux1099 # fi;;1100 # (lctit) netcdf_support=true1101 # netcdf_path=/home2/usr5/mkanda/netcdf-3.6.2;;1102 # (nech) netcdf_support=true1103 # netcdf_path=/pool/SX-6/netcdf/netcdf-3.6.0-p1;;1104 # (neck) netcdf_support=true1105 # netcdf_path=/home/DSRC/NC/tatuyama/pub/netcdf-3.6.0-p1;;1106 # esac1107 1108 1109 1075 # VOLLSTAENDIGE DATEINAMEN DER INPUT-FILES BILDEN, 1110 1076 # INPUT-DATEIEN AUF VORHANDENSEIN PRUEFEN UND EVTL. HOECHSTE ZYKLUSNUMMER … … 1337 1303 1338 1304 1305 # DAS DVRP-PAKET ERFORDERT EINE ENTSPRECHENDE BIBLIOTHEK 1306 if [[ $(echo $package_list | grep -c dvrp_graphics) != 0 ]] 1307 then 1308 if [[ "$dvrp_inc" = "" ]] 1309 then 1310 printf "\n\n +++ no value for \"dvrp_inc\" given in configuration file" 1311 printf "\n This is required for the dvrp_graphics package.\n" 1312 locat=dvrp; exit 1313 fi 1314 if [[ "$dvrp_lib" = "" ]] 1315 then 1316 printf "\n\n +++ no value for \"dvrp_lib\" given in configuration file" 1317 printf "\n This is required for the dvrp_graphics package.\n" 1318 locat=dvrp; exit 1319 fi 1320 fi 1321 1322 1339 1323 # PRUEFEN, OB ENTWEDER HAUPTPROGRAMM ODER NUR EIN AUSFUEHRBARES 1340 1324 # PROGRAMM VEREINBART WURDE (IN DIESEM FALL BRAUCHT IM WEITEREN NICHT … … 1652 1636 # PRAEPROZESSOR-DIREKTIVEN ZUM SELEKTIVEN AUSWAEHLEN VON CODETEILEN 1653 1637 # ZUSAMMENSETZEN 1638 # DIREKTIVEN ZUM AKTIVIEREN VON RECHNERSPEZIFISCHEM CODE 1654 1639 if [[ $(echo $localhost | cut -c1-3) = ibm ]] 1655 1640 then … … 1664 1649 cpp_options="$cpp_options -D__$localhost" 1665 1650 fi 1651 1652 # DIREKTIVEN DIE DURCH OPTION -K BESTIMMT WERDEN (Z.B. PARALLEL) 1666 1653 if [[ $(echo $localhost | cut -c1-3) = ibm ]] 1667 1654 then 1668 1655 [[ -n $cond1 ]] && cpp_options="${cpp_options},-D__$cond1=__$cond1" 1669 1656 [[ -n $cond2 ]] && cpp_options="${cpp_options},-D__$cond2=__$cond2" 1670 # if [[ $netcdf_support = true ]]1671 # then1672 # PPOPTS="$PPOPTS -Dnetcdf=netcdf"1673 # [[ $localhost != ibms ]] && PPOPTS="$PPOPTS -Dnetcdf_64bit=netcdf_64bit"1674 # fi1675 # if [[ $localhost = ibmy ]]1676 # then1677 # PPOPTS="$PPOPTS -Dibmy_special=ibmy_special"1678 # fi1679 1657 else 1680 1658 [[ -n $cond1 ]] && cpp_options="$cpp_options -D__$cond1" 1681 1659 [[ -n $cond2 ]] && cpp_options="$cpp_options -D__$cond2" 1682 # if [[ $netcdf_support = true ]] 1683 # then 1684 # PPOPTS="$PPOPTS -Dnetcdf" 1685 # [[ $localhost != decalpha && $localhost != lctit ]] && PPOPTS="$PPOPTS -Dnetcdf_64bit" 1686 # fi 1687 fi 1660 fi 1661 1662 # DIREKTIVEN DIE SOFTWAREPAKETE AKTIVIEREN (OPTION -p) 1688 1663 if [[ -n $package_list ]] 1689 1664 then … … 1710 1685 done 1711 1686 fi 1687 1688 # DIREKTIVEN DIE DURCH OPTION -D FESTGELEGT SIND 1712 1689 if [[ -n $cpp_opts ]] 1713 1690 then … … 1723 1700 fi 1724 1701 1725 # OPTION ZUM EINSCHALTEN DES PRAEPROZESSORS HINZUFUEGEN1726 # if [[ $host = decalpha ]]1727 # then1728 # C_PPOPTS="-cpp -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION $PPOPTS"1729 # elif [[ $(echo $host | cut -c1-3) = ibm ]]1730 # then1731 # # blanks in PPOPTS muessen durch "," ersetzt werden1732 # PPOPTS=`echo $PPOPTS | sed 's/ -/,-/g'`1733 # C_PPOPTS="-qsuffix=cpp=f90 -WF,-DMPI_REAL=MPI_DOUBLE_PRECISION,$PPOPTS"1734 # elif [[ $host = lcmuk ]]1735 # then1736 # C_PPOPTS="$PPOPTS -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"1737 # elif [[ $host = lctit ]]1738 # then1739 # C_PPOPTS="$PPOPTS -Mpreprocess -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"1740 # elif [[ $(echo $host | cut -c1-3) = nec ]]1741 # then1742 # C_PPOPTS="-Ep -DMPI_REAL=MPI_REAL8 -DMPI_2REAL=MPI_2REAL8 -DSCFFT=dzfft -DCSFFT=zdfft $PPOPTS"1743 # else1744 # C_PPOPTS="$PPOPTS"1745 # fi1746 1747 1702 else 1748 1703 … … 1778 1733 locat=compiler_name; exit 1779 1734 1780 # case $localhost in1781 # (unics) compiler_name=f77;;1782 # (lctit) if [[ "$cond1" = parallel || "$cond2" = parallel ]]1783 # then1784 # compiler_name=mpif901785 # echo ">>> compiler=mpif90"1786 # else1787 # compiler_name=pgf951788 # echo ">>> compiler=pgf95"1789 # fi;;1790 # (nech) compiler_name=sxmpif90;;1791 # (decalpha) compiler_name=f95;;1792 # (ibm|ibmb|ibmh|ibms|ibmy) compiler_name=mpxlf95_r;;1793 # (*) printf "\n +++ unknown host name: $localhost \n";1794 # locat=localhost; exit;;1795 # esac1796 1735 fi 1797 1736 … … 1800 1739 [[ $localhost = neck ]] && compiler_name=mpif90 1801 1740 1802 1803 1804 # PRAEPROZESSOR-PFAD BESTIMMEN1805 case $localhost in1806 (decalpha|ibm|ibmb|ibmh|ibms|ibmy|unics) praeproc=cpp;;1807 esac1808 1741 1809 1742 … … 1861 1794 1862 1795 1863 # BEI VERWENDUNG VON DVRP-SOFTWARE MUSS ENTSPECHENDE GRAFIK-BIBLIOTHEK1864 # MIT EINGEBUNDEN WERDEN1865 # if [[ -n $package_list ]]1866 # then1867 # if [[ $(echo $package_list | grep -c dvrp_graphics) != 0 ]]1868 # then1869 #1870 # # DVRP-GRAFIK GIBT ES NUR AUF DER IBM AM HLRN, AUF NECH/NECK UND1871 # # DEM NOTEBOOK SCIROCCO1872 # if [[ $host != ibmh && $host != nech && $host != neck && $host != lcmuk && "$local_compile" != true ]]1873 # then1874 # printf "\n"1875 # printf "\n +++ option -p with package \"dvrp_graphics\" only allowed on nech and ibmh"1876 # locat=parameter; exit1877 # fi1878 # if [[ $host = ibmh ]]1879 # then1880 # if [[ $cond1 = debug || $cond2 = debug ]]1881 # then1882 # fopts="-I/home/h/hzazchmi/lib/debug $fopts"1883 # lopts="$lopts -L/home/h/hzazchmi/lib/debug -lDVRP2 -lftp"1884 # else1885 # fopts="-I/home/h/nikevita/lib_stable/optimize $fopts"1886 # lopts="$lopts -L/home/h/nikevita/lib_stable/optimize -lDVRP2 -lftp"1887 # fi1888 # elif [[ $host = nech ]]1889 # then1890 # fopts="-I/import/ds9b/ipf2/b/b323014/lib/optimize $fopts"1891 # lopts="$lopts -L/import/ds9b/ipf2/b/b323014/lib/optimize -lDVRP2 -lftp"1892 # elif [[ $host = neck ]]1893 # then1894 # fopts="-I/home/DSRC/NC/tatuyama/pub/dvrp $fopts"1895 # lopts="$lopts -L/home/DSRC/NC/tatuyama/pub/dvrp -lDVRP2 -lftp"1896 # elif [[ $host = lcmuk ]]1897 # then1898 # fopts="-I/usr/local/lib/dvrp/optimize $fopts"1899 # lopts="$lopts -L/usr/local/lib/dvrp/optimize -lDVRP2 -lftp"1900 # fi1901 # fi1902 # fi1903 1904 1905 # EVTL. EINBINDEN DER NETCDF-BIBLIOTHEK1906 # if [[ $netcdf_support = true ]]1907 # then1908 # case $host in1909 # (decalpha) fopts="-I${netcdf_path}/include $fopts"1910 # lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;1911 # (ibmb|ibmh) fopts="-I ${netcdf_path}/include-64 $fopts"1912 # lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;1913 # (ibms) fopts="-I /applic/netcdf64/src/f90 $fopts"1914 # lopts="$lopts -L${netcdf_path} -lnetcdf";;1915 # (ibmy) fopts="-I ${netcdf_path}/include $fopts"1916 # lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;1917 # (nech|neck) fopts="-I ${netcdf_path}/include $fopts"1918 # lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;1919 # (lctit) fopts="-I ${netcdf_path}/include $fopts"1920 # lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;1921 #1922 # esac1923 # fi1924 1796 1925 1797 # PRUEFEN DER CPU-ZEIT. (CPUMAX WIRD ALS ENV-VARIABLE VOM HAUTPRO-
Note: See TracChangeset
for help on using the changeset viewer.