Changeset 83 for palm/trunk/SCRIPTS/mbuild
- Timestamp:
- Apr 19, 2007 4:27:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.