Changeset 83 for palm/trunk/SCRIPTS
- Timestamp:
- Apr 19, 2007 4:27:07 PM (18 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/.mrun.config.default
r63 r83 10 10 %use_makefile true 11 11 # 12 # Enter your own host below by adding another line containing in the second 13 # column your hostname (as provided by the unix command "hostname") and in the 14 # third column the host identifier. Depending on your system, the first 15 # characters of the host identifier should be "lc" (Linux cluster), "ibm" 16 # (IBM-AIX), or "nec" (NEC-SX), respectively. 17 %host_identifier bora lcmuk 18 %host_identifier cs* nech 19 %host_identifier hreg*-en0 ibmh 20 %host_identifier hanni*-en0 ibmh 21 %host_identifier breg*-en0 ibmb 22 %host_identifier berni*-en0 ibmb 23 # 12 24 #%remote_username <replace by your linux cluster username> lcmuk parallel 13 25 %tmp_user_catalog /tmp lcmuk parallel 14 26 %compiler_name mpif90 lcmuk parallel 15 27 %compiler_name_ser ifort lcmuk parallel 28 %cpp_options -DMPI_REAL=MPI_DOUBLE_PRECISION:-DMPI_2REAL=MPI_2DOUBLE_PRECISION:-D__netcdf:-D__netcdf_64bit:-D__intel_openmp_bug lcmuk parallel 29 %netcdf_inc -I:/muksoft/packages/netcdf/linux/include lcmuk parallel 30 %netcdf_lib -L/muksoft/packages/netcdf/linux/lib:-lnetcdf lcmuk parallel 16 31 %fopts -axW:-cpp:-openmp:-r8:-nbs:-convert:little_endian lcmuk parallel 17 32 %lopts -axW:-cpp:-openmp:-r8:-nbs:-Vaxlib lcmuk parallel … … 33 48 %compiler_name mpxlf95_r ibmh parallel 34 49 %compiler_name_ser xlf95 ibmh parallel 35 %fopts -O3:-g:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape ibmh parallel 36 %lopts -O3:-g:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape:-lesslsmp ibmh parallel 50 %cpp_options -qsuffix=cpp=f90:-WF,-DMPI_REAL=MPI_DOUBLE_PRECISION,-D__netcdf=__netcdf,-D__netcdf_64bit=__netcdf_64bit ibmh parallel 51 %dvrp_inc -I/home/h/nikevita/lib_stable/optimize ibmh parallel 52 %dvrp_lib -L/home/h/nikevita/lib_stable/optimize:-lDVRP2:-lftp ibmh parallel 53 %netcdf_inc -I:/aws/dataformats/netcdf-3.6.0-p1/64-32/include-64 ibmh parallel 54 %netcdf_lib -L/aws/dataformats/netcdf-3.6.0-p1/64-32/lib:-lnetcdf ibmh parallel 55 %fopts -O3:-g:-qfloat=nomaf:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape ibmh parallel 56 %lopts -O3:-g:-qfloat=nomaf:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape:-lesslsmp ibmh parallel 37 57 %memory 1630 ibmh parallel 38 58 %cpumax 1000 ibmh parallel … … 44 64 %compiler_name mpxlf95_r ibmh parallel debug 45 65 %compiler_name_ser xlf95 ibmh parallel debug 46 %fopts -qnoopt:-g:- qsmp=noopt:-C:-qinitauto=FFFFFFFF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide::invalid::enable:-qsigtrap ibmh parallel debug47 %lopts -qnoopt:-g:- qsmp=noopt:-C:-qinitauto=FFFFFFFF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide::invalid::enable:-qsigtrap:-lesslsmp ibmh parallel debug66 %fopts -qnoopt:-g:-C:-qinitauto=FFFFFFFF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide::invalid::enable:-qsigtrap ibmh parallel debug 67 %lopts -qnoopt:-g:-C:-qinitauto=FFFFFFFF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide::invalid::enable:-qsigtrap:-lesslsmp ibmh parallel debug 48 68 %memory 1000 ibmh parallel debug 49 69 %cpumax 1000 ibmh parallel debug … … 64 84 %compiler_name sxmpif90 nech parallel 65 85 %compiler_name_ser sxf90 nech parallel 86 %cpp_options -Ep:-DMPI_REAL=MPI_REAL8:-DMPI_2REAL=MPI_2REAL8:-DSCFFT=DZFFT:-DCSFFT=ZDFFT:-D__netcdf:-D__netcdf_64bit nech parallel 87 %netcdf_inc -I:/pool/SX-6/netcdf/netcdf-3.6.0-p1/include nech parallel 88 %netcdf_lib -L/pool/SX-6/netcdf/netcdf-3.6.0-p1/lib:-lnetcdf nech parallel 66 89 %fopts -C:hopt:-Wf:\'-init:stack=nan:-init:heap=nan:-A:idbl4:-pvctl:fullmsg\':-ftrace:-P:stack:-pi:auto:-pi:line=1000 nech parallel 67 90 %lopts -C:hopt:-Wf:\'-init:stack=nan:-init:heap=nan:-A:idbl4\':-ftrace:-P:stack:-pi:auto:-pi:line=1000:-L/SX/opt/MathKeisan/MK1_6/lib/:-l:fft nech parallel … … 75 98 %compiler_name sxmpif90 neck parallel 76 99 %compiler_name_ser sxf90 neck parallel 100 %cpp_options -Ep:-DMPI_REAL=MPI_REAL8:-DMPI_2REAL=MPI_2REAL8:-DSCFFT=DZFFT:-DCSFFT=ZDFFT:-D__netcdf:-D__netcdf_64bit neck parallel 101 %netcdf_inc -I:/home/DSRC/NC/tatuyama/pub/netcdf-3.6.0-p1/include neck parallel 102 %netcdf_lib -L/home/DSRC/NC/tatuyama/pub/netcdf-3.6.0-p1/lib:-lnetcdf neck parallel 103 %dvrp_inc -I/home/DSRC/NC/tatuyama/pub/dvrp neck parallel 104 %dvrp_lib -L/home/DSRC/NC/tatuyama/pub/dvrp:-lDVRP2:-lftp neck parallel 77 105 %fopts -C:hopt:-Wf:\'-init:stack=nan:-init:heap=nan:-A:idbl4:-pvctl:fullmsg\':-ftrace:-P:stack:-pi:auto:-pi:line=1000 neck parallel 78 106 %lopts -C:hopt:-Wf:\'-init:stack=nan:-init:heap=nan:-A:idbl4\':-ftrace:-P:stack:-pi:auto:-pi:line=1000:-L/SX/opt/MathKeisan/MK1_6/lib/:-l:fft neck parallel -
palm/trunk/SCRIPTS/mbuild
r82 r83 108 108 suf=f90 109 109 update=false 110 working_directory=`pwd` 110 111 111 112 typeset -i ih ihost=0 … … 119 120 # FEHLERBEHANDLUNG 120 121 # BEI EXIT: 121 trap 'rm -rf tmp_mbuild122 trap 'rm -rf $working_directory/tmp_mbuild 122 123 if [[ $locat != normal ]] 123 124 then … … 129 130 130 131 # BEI TERMINAL-BREAK: 131 trap 'rm -rf tmp_mbuild132 trap 'rm -rf $working_directory/tmp_mbuild 132 133 printf "\n\n +++ mbuild killed by \"^C\" \n\n" 133 134 exit … … 188 189 HOSTNAME=`echo $line | cut -d" " -s -f2` 189 190 host_identifier=`echo $line | cut -d" " -s -f3` 190 if [[ "$HOSTNAME" = $local_host_real_name]]191 if [[ $local_host_real_name = $HOSTNAME ]] 191 192 then 192 193 local_host=$host_identifier … … 207 208 208 209 209 # case $local_host_real_name in210 # (atmos) local_host=lcide;;211 # (berte) local_host=t3eb;;212 # (bora|breva|gregale|irifi|levanto|maestro|orkan|ostria|quanero|scirocco) local_host=lcmuk;;213 # (fimm.bccs.uib.no) local_host=lcmuk;;214 # (gate) local_host=neck;;215 # (gfdl3.yonsei.ac.kr) local_host=decalpha;;216 # (gfdl5) local_host=ibmy;;217 # (gwdk081.gwdg.de) local_host=ibm;;218 # (hreg01a-en0|hreg02a-en0) local_host=ibmh;;219 # (nobel|nobela) local_host=ibms;;220 # (tgg*) local_host=lctit;;221 # (t3e) local_host=t3eh;;222 # (zam003) local_host=t3ej2;;223 # (zam005) local_host=t3ej5;;224 # (*) printf "\n +++ local host \"$local_host_real_name\" not admitted for mbuild \n"225 # locat=local_host; exit;;226 # esac227 210 228 211 [[ $local_host_real_name = scirocco ]] && scirocco=true … … 737 720 738 721 # IP-ADRESSE DES REMOTE-RECHNERS BESTIMMEN 739 netcdf_support=false740 722 case $remote_host in 741 (lcmuk) remote_addres=130.75.105.3 742 netcdf_support=true 743 if [[ $scirocco = true ]] 723 (lcmuk) remote_addres=130.75.105.3;; 724 (lctit) remote_addres=172.17.75.161;; 725 (decalpha) remote_addres=165.132.26.56;; 726 (ibmb) remote_addres=130.73.230.10;; 727 (ibmh) remote_addres=130.75.4.10;; 728 (ibms) remote_addres=150.183.5.101;; 729 (ibmy) remote_addres=165.132.26.58;; 730 (nech) remote_addres=136.172.44.192;; 731 (neck) remote_addres=133.5.178.11;; 732 (ground.yonsei.ac.kr) remote_addres=134.75.155.33;; 733 (*) if [[ $local_host != $remote_host ]] 744 734 then 745 netcdf_path=/opt/netcdf/3.6.2-beta4 746 elif [[ $fimm = true ]] 747 then 748 netcdf_path=/local/netcdf 749 else 750 netcdf_path=/muksoft/packages/netcdf/linux 735 printf "\n +++ remote host \"$remote_host\" unknown"; 736 printf "\n please inform S. Raasch!" 751 737 fi;; 752 (lctit) remote_addres=172.17.75.161; netcdf_support=true753 netcdf_path=/home/usr5/mkanda/netcdf-3.6.2; cpp_options="-Mpreprocess";;754 (decalpha) remote_addres=165.132.26.56; cpp_options="-cpp"; netcdf_support=true755 netcdf_path=/usr/local/netcdf-3.5.1;;756 (ibm) remote_addres=134.76.99.81; cpp_options="-qsuffix=cpp=f90";;757 (ibmb) remote_addres=130.73.230.10; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true758 netcdf_path=/aws/dataformats/netcdf-3.6.0-p1/64-32;;759 (ibmh) remote_addres=130.75.4.10; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true760 netcdf_path=/aws/dataformats/netcdf-3.6.0-p1/64-32;;761 (ibms) remote_addres=150.183.5.101; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true762 netcdf_path=/applic/lib/NETCDF64;;763 (ibmy) remote_addres=165.132.26.58; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true764 netcdf_path=/usr1/users/raasch/pub/netcdf-3.6.0-p1;;765 (nech) remote_addres=136.172.44.192; cpp_options="-Ep"; netcdf_support=true766 netcdf_path=/pool/SX-6/netcdf/netcdf-3.6.0-p1;;767 (neck) remote_addres=133.5.178.11; cpp_options="-Ep"; netcdf_support=true768 netcdf_path=/home/DSRC/NC/tatuyama/pub/netcdf-3.6.0-p1;;769 (t3eb) remote_addres=130.73.206.21; cpp_options="-eZ";;770 (t3eh) remote_addres=130.75.4.131; cpp_options="-eZ";;771 (t3ej2) remote_addres=134.94.100.22; cpp_options="-eZ";;772 (t3ej5) remote_addres=134.94.100.49; cpp_options="-eZ";;773 (ground.yonsei.ac.kr) remote_addres=134.75.155.33;;774 (*) printf "\n +++ remote host \"$remote_host\" unknown";775 printf "\n please inform S. Raasch!";776 locat=config_file; exit;;777 738 esac 778 739 … … 912 873 913 874 914 # PRAEPROZESSOR-DIREKTIVEN SETZEN915 if [[ $(echo $remote_host | cut -c1-3) = ibm ]]916 then917 if [[ $remote_host = ibms ]]918 then919 cpp_options="$cpp_options -WF,-DMPI_REAL=MPI_DOUBLE_PRECISION"920 [[ $netcdf_support = true ]] && cpp_options="${cpp_options},-D__netcdf"921 else922 cpp_options="$cpp_options -WF,-DMPI_REAL=MPI_DOUBLE_PRECISION"923 [[ $netcdf_support = true ]] && cpp_options="${cpp_options},-D__netcdf,-D__netcdf_64bit"924 [[ $remote_host = ibmy ]] && cpp_options="${cpp_options},-D__ibmy_special"925 fi926 elif [[ $remote_host = lcmuk ]]927 then928 cpp_options="$cpp_options -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"929 [[ $netcdf_support = true ]] && cpp_options="$cpp_options -D__netcdf -D__netcdf_64bit"930 elif [[ $remote_host = lctit ]]931 then932 cpp_options="$cpp_options -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"933 [[ $netcdf_support = true ]] && cpp_options="$cpp_options -D__netcdf"934 elif [[ $remote_host = decalpha ]]935 then936 cpp_options="$cpp_options -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"937 [[ $netcdf_support = true ]] && cpp_options="$cpp_options -D__netcdf"938 elif [[ $remote_host = nech || $remote_host = neck ]]939 then940 cpp_options="$cpp_options -DMPI_REAL=MPI_REAL8 -DMPI_2REAL=MPI_2REAL8 -DSCFFT=DZFFT -DCSFFT=ZDFFT"941 [[ $netcdf_support = true ]] && cpp_options="$cpp_options -D__netcdf -D__netcdf_64bit"942 fi943 944 if [[ $(echo $remote_host | cut -c1-3) = ibm ]]945 then946 for string in $remote_host_string947 do948 if [[ $(echo $string | cut -c1-3) = ibm ]]949 then950 cpp_options="${cpp_options},-D__ibm"951 if [[ $remote_host = ibmy ]]952 then953 cpp_options="${cpp_options},-D__ibmy_special"954 fi955 else956 cpp_options="${cpp_options},-D__$string"957 fi958 done959 cpp_options="$cpp_options "960 elif [[ $remote_host = nech || $remote_host = neck ]]961 then962 for string in $remote_host_string963 do964 if [[ $(echo $string | cut -c1-3) = nec ]]965 then966 cpp_options="${cpp_options} -D__nec"967 else968 cpp_options="${cpp_options} -D__$string"969 fi970 done971 cpp_options="$cpp_options "972 else973 for string in $remote_host_string974 do975 cpp_options="$cpp_options -D__$string "976 done977 fi978 979 980 875 # PRAEPROZESSOR-OPTIONEN/DIREKTIVEN ERMITTELN 981 876 line="" … … 1004 899 then 1005 900 cpp_options="$cpp_options -D__lc " 901 elif [[ $(echo $remote_host | cut -c1-3) = ibm && $(echo $string | cut -c1-3) = ibm ]] 902 then 903 cpp_options="${cpp_options},-D__ibm" 904 elif [[ $(echo $remote_host | cut -c1-3) = nec && $(echo $string | cut -c1-3) = nec ]] 905 then 906 cpp_options="${cpp_options} -D__nec" 1006 907 else 1007 cpp_options="$cpp_options -D__$string " 908 if [[ $(echo $remote_host | cut -c1-3) = ibm ]] 909 then 910 cpp_options="${cpp_options},-D__$string" 911 else 912 cpp_options="$cpp_options -D__$string " 913 fi 1008 914 fi 1009 915 done … … 1067 973 fi 1068 974 1069 if [[ $netcdf_support = true ]]1070 then1071 case $remote_host in1072 (decalpha) compiler_options="-I${netcdf_path}/include $compiler_options";;1073 (ibmb|ibmh) compiler_options="-I ${netcdf_path}/include-64 $compiler_options";;1074 (ibms) compiler_options="-I /applic/netcdf64/src/f90 $compiler_options";;1075 (ibmy) compiler_options="-I ${netcdf_path}/include $compiler_options";;1076 (lctit) compiler_options="-I ${netcdf_path}/include $compiler_options";;1077 (nech|neck) compiler_options="-I ${netcdf_path}/include $compiler_options";;1078 esac1079 fi1080 975 1081 976 … … 1102 997 # NETCDF-LIBRARY HINZUFUEGEN 1103 998 loader_options="$loader_options $netcdf_lib" 1104 fi1105 1106 if [[ $netcdf_support = true ]]1107 then1108 case $remote_host in1109 (decalpha) loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;1110 (ibmb|ibmh|nech|neck) loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;1111 (ibms) loader_options="$loader_options -L${netcdf_path} -lnetcdf";;1112 (ibmy) loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;1113 (lctit) loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;1114 esac1115 999 fi 1116 1000 -
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.