Changeset 69
- Timestamp:
- Mar 18, 2007 11:44:44 PM (18 years ago)
- Location:
- palm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r67 r69 84 84 # 14/03/07 - Siggi - fimm admitted, revision number added to terminal 85 85 # output 86 # 16/03/07 - Siggi - adjustments (netcdf) for lctit 87 # adjustments for running under pdksh, local ip-addres 88 # is not determined any more 86 89 87 90 … … 113 116 # FEHLERBEHANDLUNG 114 117 # BEI EXIT: 115 trap 'if [[ $locat != normal ]] 118 trap 'rm -rf tmp_mbuild 119 if [[ $locat != normal ]] 116 120 then 117 121 printf "\n\n +++ mbuild killed \n\n" … … 122 126 123 127 # BEI TERMINAL-BREAK: 124 trap 'printf "\n\n +++ mbuild killed by \"^C\" \n\n" 128 trap 'rm -rf tmp_mbuild 129 printf "\n\n +++ mbuild killed by \"^C\" \n\n" 125 130 exit 126 131 ' 2 … … 156 161 # LOKALEN RECHNER ERMITTELN 157 162 local_host_real_name=$(hostname) 158 local_addres=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 163 # local_addres=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 164 159 165 case $local_host_real_name in 160 166 (atmos) local_host=lcide;; … … 163 169 (fimm.bccs.uib.no) local_host=lcmuk;; 164 170 (gate) local_host=neck;; 165 (gfdl3.yonsei.ac.kr) local_host=decalpha; local_addres=165.132.26.56;;166 (gfdl5) local_host=ibmy; local_addres=165.132.26.58;;171 (gfdl3.yonsei.ac.kr) local_host=decalpha;; 172 (gfdl5) local_host=ibmy;; 167 173 (gwdk081.gwdg.de) local_host=ibm;; 168 174 (hreg01a-en0|hreg02a-en0) local_host=ibmh;; … … 200 206 # BENUTZERNAMEN AUF LOKALEM RECHNER AUS KONFIGURATIONSDATEI ERMITTELN 201 207 line="" 202 grep " $local_host" $config_file | grep "%remote_username" | while read line 208 grep " $local_host" $config_file | grep "%remote_username" > tmp_mbuild 209 while read line 203 210 do 204 211 if [[ "$line" != "" || $(echo $line | cut -c1) != "#" ]] … … 206 213 local_username=`echo $line | cut -d" " -s -f2` 207 214 fi 208 done 215 done < tmp_mbuild 209 216 210 217 if [[ "$local_username" = "" ]] … … 222 229 # VARIABLEN SETZEN, WEIL DIESE EVTL. IN PFADNAMEN VERWENDET WERDEN 223 230 line="" 224 grep "%" $config_file | while read line 231 grep "%" $config_file > tmp_mbuild 232 while read line 225 233 do 226 234 if [[ "$line" != "" && "$(echo $line | cut -d" " -s -f3)" = "" ]] … … 231 239 # eval echo \" $var=\$$var \" # AUSGABE ZU TESTZWECKEN 232 240 fi 233 done 241 done < tmp_mbuild 234 242 235 243 # NUN PRUEFEN, OB EIN GLOBALER QUELLTEXTPFAD VEREINBART WURDE 236 244 line="" 237 grep "%source_path" $config_file | while read line 245 grep "%source_path" $config_file > tmp_mbuild 246 while read line 238 247 do 239 248 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 244 253 fi 245 254 fi 246 done 255 done < tmp_mbuild 247 256 248 257 line="" 249 grep " $local_host" $config_file | grep "%source_path" | while read line 258 grep " $local_host" $config_file | grep "%source_path" > tmp_mbuild 259 while read line 250 260 do 251 261 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 253 263 local_source_path=`echo $line | cut -d" " -s -f2` 254 264 fi 255 done 265 done < tmp_mbuild 256 266 257 267 if [[ "$local_source_path" = "" ]] … … 273 283 # EBENSO PFAD FUER DAS MAKE-DEPOSITORY ERMITTELN 274 284 line="" 275 grep "%depository_path" $config_file | while read line 285 grep "%depository_path" $config_file > tmp_mbuild 286 while read line 276 287 do 277 288 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 282 293 fi 283 294 fi 284 done 295 done < tmp_mbuild 285 296 286 297 line="" 287 grep " $local_host" $config_file | grep "%depository_path" | while read line 298 grep " $local_host" $config_file | grep "%depository_path" > tmp_mbuild 299 while read line 288 300 do 289 301 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 291 303 local_depository_path=`echo $line | cut -d" " -s -f2` 292 304 fi 293 done 305 done < tmp_mbuild 294 306 295 307 if [[ "$local_depository_path" = "" ]] … … 628 640 printf "\n *** scanning configuration file for host(s) ..." 629 641 630 grep %fopts $config_file | while read line 642 grep %fopts $config_file > tmp_mbuild 643 while read line 631 644 do 632 645 # KOMMENTARZEILEN UEBERSPRINGEN … … 634 647 (( ihost = ihost + 1 )) 635 648 hostline[$ihost]="$line" 636 done 649 done < tmp_mbuild 637 650 638 651 … … 699 712 fi;; 700 713 (lctit) remote_addres=172.17.75.161; netcdf_support=true 701 netcdf_path=/home/usr5/mkanda/netcdf-3.6. 1/src; cpp_options="-Mpreprocess";;714 netcdf_path=/home/usr5/mkanda/netcdf-3.6.2; cpp_options="-Mpreprocess";; 702 715 (decalpha) remote_addres=165.132.26.56; cpp_options="-cpp"; netcdf_support=true 703 716 netcdf_path=/usr/local/netcdf-3.5.1;; … … 728 741 # REMOTE-USERNAMEN ERMITTELN 729 742 line="" 730 grep "$remote_host_string" $config_file | grep "%remote_username" | while read line1 743 grep "$remote_host_string" $config_file | grep "%remote_username" > tmp_mbuild 744 while read line1 731 745 do 732 746 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] … … 734 748 line="$line1" 735 749 fi 736 done 750 done < tmp_mbuild 737 751 738 752 if [[ "$line" = "" || $(echo $line | cut -c1) = "#" ]] … … 749 763 line="" 750 764 remote_source_path="" 751 grep "$remote_host_string" $config_file | grep "%source_path" | while read line1 765 grep "$remote_host_string" $config_file | grep "%source_path" > tmp_mbuild 766 while read line1 752 767 do 753 768 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] … … 755 770 line="$line1" 756 771 fi 757 done 772 done < tmp_mbuild 758 773 759 774 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 780 795 remote_md="" 781 796 line="" 782 grep "$remote_host_string" $config_file | grep "%depository_path" | while read line1 797 grep "$remote_host_string" $config_file | grep "%depository_path" > tmp_mbuild 798 while read line1 783 799 do 784 800 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] … … 786 802 line="$line1" 787 803 fi 788 done 804 done < tmp_mbuild 789 805 790 806 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 810 826 # COMPILERNAMEN ERMITTELN 811 827 line="" 812 grep "$remote_host_string" $config_file | grep "%compiler_name " | while read line1 828 grep "$remote_host_string" $config_file | grep "%compiler_name " > tmp_mbuild 829 while read line1 813 830 do 814 831 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] … … 816 833 line="$line1" 817 834 fi 818 done 835 done < tmp_mbuild 819 836 820 837 if [[ "$line" = "" || $(echo $line | cut -c1) = "#" ]] … … 833 850 then 834 851 line="" 835 grep "$remote_host_string" $config_file | grep "%compiler_name_ser" | while read line1 852 grep "$remote_host_string" $config_file | grep "%compiler_name_ser" > tmp_mbuild 853 while read line1 836 854 do 837 855 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] … … 839 857 line="$line1" 840 858 fi 841 done 859 done < tmp_mbuild 842 860 843 861 if [[ "$line" = "" || $(echo $line | cut -c1) = "#" ]] … … 923 941 # COMPILEROPTIONEN ERMITTELN 924 942 line="" 925 grep "$remote_host_string" $config_file | grep "%fopts" | while read line1 943 grep "$remote_host_string" $config_file | grep "%fopts" > tmp_mbuild 944 while read line1 926 945 do 927 946 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] … … 929 948 line="$line1" 930 949 fi 931 done 950 done < tmp_mbuild 932 951 if [[ "$line" = "" || $(echo $line | cut -c1) = "#" ]] 933 952 then … … 947 966 (ibmy) compiler_options="-I ${netcdf_path}/include $compiler_options";; 948 967 (lcmuk) compiler_options="-I ${netcdf_path}/include $compiler_options";; 949 (lctit) compiler_options="-I ${netcdf_path}/ f90$compiler_options";;968 (lctit) compiler_options="-I ${netcdf_path}/include $compiler_options";; 950 969 (nech|neck) compiler_options="-I ${netcdf_path}/include $compiler_options";; 951 970 esac … … 956 975 # LADER-OPTIONEN ERMITTELN 957 976 line="" 958 grep "$remote_host_string" $config_file | grep "%lopts" | while read line1 977 grep "$remote_host_string" $config_file | grep "%lopts" > tmp_mbuild 978 while read line1 959 979 do 960 980 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] … … 962 982 line="$line1" 963 983 fi 964 done 984 done < tmp_mbuild 965 985 966 986 if [[ "$line" = "" || $(echo $line | cut -c1) = "#" ]] … … 980 1000 (ibms) loader_options="$loader_options -L${netcdf_path} -lnetcdf";; 981 1001 (ibmy) loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";; 982 (lctit) loader_options="$loader_options -L${netcdf_path}/lib src-lnetcdf";;1002 (lctit) loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";; 983 1003 esac 984 1004 fi -
palm/trunk/SCRIPTS/mrun
r68 r69 1 #!/bin/ ksh1 #!/bin/pdksh 2 2 3 3 ##!/home/DSRC/NC/tatuyama/pub/ksh NEEDED ON NEC AT RIAM !!!!!!!!!! … … 114 114 # 14/03/07 - Siggi - fimm admitted, revision number added to terminal 115 115 # output 116 # 16/03/07 - Siggi - adjustments for lctit 116 117 117 118 … … 184 185 read_from_config="" 185 186 restart_run=false 186 return_addres=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 187 # return_addres=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 188 return_addres=1.2.3.4 187 189 if [[ $return_addres = 130.75.105.158 ]] 188 190 then … … 246 248 # FEHLERBEHANDLUNG 247 249 # BEI EXIT: 248 trap 'if [[ $locat != localhost ]] 250 trap 'rm -rf tmp_mrun 251 if [[ $locat != localhost ]] 249 252 then 250 253 # if [[ ! -f ${mrun_path}/statistik/mrun_statistik ]] … … 271 274 # fi 272 275 # fi 273 continue276 echo " " > /dev/null 274 277 fi 275 278 … … 308 311 309 312 # BEI TERMINAL-BREAK: 310 trap '[[ $tmpcreate = true ]] && (cd; rm -rf $TEMPDIR) 313 trap 'rm -rf tmp_mrun 314 [[ $tmpcreate = true ]] && (cd; rm -rf $TEMPDIR) 311 315 if [[ -f ~/job_queue/JOBINFO.$QSUB_REQID ]] 312 316 then … … 520 524 if [[ -n $additional_conditions ]] 521 525 then 522 echo $additional_conditions | cut -d" " -f1-3 | read cond1 cond2 dummy523 #cond1=`echo $additional_conditions | cut -d" " -f1`524 #cond2=`echo $additional_conditions | cut -d" " -s -f2`525 #dummy=`echo $additional_conditions | cut -d" " -s -f3`526 # echo $additional_conditions | cut -d" " -f1-3 | read cond1 cond2 dummy 527 cond1=`echo $additional_conditions | cut -d" " -f1` 528 cond2=`echo $additional_conditions | cut -d" " -s -f2` 529 dummy=`echo $additional_conditions | cut -d" " -s -f3` 526 530 if [[ -n $dummy ]] 527 531 then … … 592 596 # ZEILE DEFINIERT ENVIRONMENT-VARIABLE 593 597 zeile=$(echo $zeile | cut -c2-) 594 echo $zeile | cut -d" " -f1-5 | read var value for_host for_cond1 for_cond2595 #var=`echo $zeile | cut -d" " -f1`596 #value=`echo $zeile | cut -d" " -s -f2`597 #for_host=`echo $zeile | cut -d" " -s -f3`598 #for_cond1=`echo $zeile | cut -d" " -s -f4`599 #for_cond2=`echo $zeile | cut -d" " -s -f5`598 # echo $zeile | cut -d" " -f1-5 | read var value for_host for_cond1 for_cond2 599 var=`echo $zeile | cut -d" " -f1` 600 value=`echo $zeile | cut -d" " -s -f2` 601 for_host=`echo $zeile | cut -d" " -s -f3` 602 for_cond1=`echo $zeile | cut -d" " -s -f4` 603 for_cond2=`echo $zeile | cut -d" " -s -f5` 600 604 601 605 if [[ "$for_host" = "" || ( "$for_host" = $host && "$for_cond1" = "$cond1" && "$for_cond2" = "$cond2" ) || $(echo "$input_list$output_list"|grep -c "$for_host") != 0 ]] … … 683 687 # s2b: loc - Feld (optional) 684 688 # s2c: tr/ar - Feld (optional) 685 echo $zeile | cut -d" " -f1-2 | read s1 s2686 #s1=`echo $zeile | cut -d" " -f1`687 #s2=`echo $zeile | cut -d" " -s -f2`689 # echo $zeile | cut -d" " -f1-2 | read s1 s2 690 s1=`echo $zeile | cut -d" " -f1` 691 s2=`echo $zeile | cut -d" " -s -f2` 688 692 s2a=$(echo $s2 | cut -d":" -f1) 689 693 if [[ $(echo $s2 | grep -c ":") = 0 ]] … … 692 696 s2c="" 693 697 else 694 echo $s2 | cut -d":" -f2-3 | sed 's/:/ /g' | read s2b s2c695 #s2b=`echo $s2 | cut -d":" -f2 | sed 's/:/ /g'`696 #s2c=`echo $s2 | cut -d":" -s -f3 | sed 's/:/ /g'`697 fi 698 echo $zeile | cut -d" " -f3-6 | read s3 s4 s5 s6699 #s3=`echo $zeile | cut -d" " -f3`700 #s4=`echo $zeile | cut -d" " -s -f4`701 #s5=`echo $zeile | cut -d" " -s -f5`702 #s6=`echo $zeile | cut -d" " -s -f6`698 # echo $s2 | cut -d":" -f2-3 | sed 's/:/ /g' | read s2b s2c 699 s2b=`echo $s2 | cut -d":" -f2 | sed 's/:/ /g'` 700 s2c=`echo $s2 | cut -d":" -s -f3 | sed 's/:/ /g'` 701 fi 702 # echo $zeile | cut -d" " -f3-6 | read s3 s4 s5 s6 703 s3=`echo $zeile | cut -d" " -f3` 704 s4=`echo $zeile | cut -d" " -s -f4` 705 s5=`echo $zeile | cut -d" " -s -f5` 706 s6=`echo $zeile | cut -d" " -s -f6` 703 707 704 708 … … 768 772 # esac 769 773 774 775 # ENVIRONMENT-VARIABLEN FUER INTERPRET_CONFIG UEBER NAMELIST_DATEI ZUR 776 # VERFUEGUNG STELLEN 777 cat > .mrun_environment << %%END%% 778 &mrun_environment cond1 = '$cond1', cond2 = '$cond2', 779 config_file = '$config_file', do_remote = '$do_remote', 780 do_trace = '$do_trace', host = '$host', 781 input_list = '$input_list', icf = '$interpreted_config_file', 782 localhost = '$localhost', output_list = '$output_list' / 783 784 %%END%% 785 786 # WERTE VON MRUN-OPTIONEN SICHERN UND DAMIT GEGEBENENFALLS SPAETER DIE 787 # IN DER KONFIGURAIONSDATEI ANGEGEBENEN WERTE UEBERSTEUERN 788 mrun_memory=$memory 789 mrun_cpumax=$cpumax 790 mrun_numprocs=$numprocs 791 770 792 if [[ $localhost_realname = "gate" ]] 771 793 then … … 779 801 export PATH=$PATH:. 780 802 . $interpreted_config_file 781 rm $interpreted_config_file 803 # rm $interpreted_config_file 804 805 # OPTIONSWERTE UEBERSTEUERN KONFIGURATIONSDATEI 806 [[ "mrun_memory" != "" ]] && memory=$mrun_memory 807 [[ "mrun_cpumax" != "" ]] && cpumax=$mrun_cpumax 808 [[ "mrun_numprocs" != "" ]] && numprocs=$mrun_numprocs 782 809 783 810 fi … … 1054 1081 fi;; 1055 1082 (lctit) netcdf_support=true 1056 netcdf_path=/home2/usr5/mkanda/netcdf-3.6. 1;;1083 netcdf_path=/home2/usr5/mkanda/netcdf-3.6.2;; 1057 1084 (nech) netcdf_support=true 1058 1085 netcdf_path=/pool/SX-6/netcdf/netcdf-3.6.0-p1;; … … 1391 1418 # ALLE MODIFIZIERTEN QUELLCODEDATEIEN AUFLISTEN 1392 1419 Filenames="" 1393 svn status | while read line 1420 svn status > tmp_mrun 1421 while read line 1394 1422 do 1395 1423 firstc=`echo $line | cut -c1` … … 1403 1431 fi 1404 1432 fi 1405 done 1433 done < tmp_mrun 1406 1434 1407 1435 … … 1869 1897 (lcmuk|nech|neck) FOPTS="-I ${netcdf_path}/include $FOPTS" 1870 1898 LOPTS="$LOPTS -L${netcdf_path}/lib -lnetcdf";; 1871 (lctit) FOPTS="-I ${netcdf_path}/ src/f90$FOPTS"1872 LOPTS="$LOPTS -L${netcdf_path}/ src/libsrc-lnetcdf";;1899 (lctit) FOPTS="-I ${netcdf_path}/include $FOPTS" 1900 LOPTS="$LOPTS -L${netcdf_path}/lib -lnetcdf";; 1873 1901 1874 1902 esac … … 2175 2203 # PFADNAMEN FUER DAS MAKE-DEPOSITORY ERMITTELN 2176 2204 line="" 2177 grep "%depository_path" $config_file | while read line 2205 grep "%depository_path" $config_file > tmp_mrun 2206 while read line 2178 2207 do 2179 2208 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 2184 2213 fi 2185 2214 fi 2186 done 2215 done < tmp_mrun 2187 2216 2188 2217 line="" 2189 grep " $localhost" $config_file | grep "%depository_path" | while read line 2218 grep " $localhost" $config_file | grep "%depository_path" > tmp_mrun 2219 while read line 2190 2220 do 2191 2221 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] … … 2193 2223 local_depository_path=`echo $line | cut -d" " -s -f2` 2194 2224 fi 2195 done 2225 done < tmp_mrun 2196 2226 2197 2227 if [[ "$local_depository_path" = "" ]] … … 2915 2945 if [[ "$QUEUE" = interactive ]] 2916 2946 then 2917 mpirun -np $numprocs $runfile$ROPTS > aout_output 2>&12947 mpirun -np $numprocs a.out $ROPTS > aout_output 2>&1 2918 2948 else 2919 n1ge -fore -mpi $numprocs -q $queue $runfile$ROPTS > aout_output 2>&12949 n1ge -fore -mpi $numprocs -q $queue a.out $ROPTS > aout_output 2>&1 2920 2950 fi 2921 2951 … … 3866 3896 3867 3897 # WORKAROUND FUER RIAM-NEC-JOBS WEGEN PROFILE-SCHWIERIGKEITEN 3868 if [[ $localhost_realname = "gate" ]]3898 if [[ $localhost_realname = "gate" || $localhost = lctit ]] 3869 3899 then 3870 3900 echo "export PALM_BIN=$PALM_BIN" >> $jobfile -
palm/trunk/SCRIPTS/subjob
r66 r69 289 289 (ibms) queue=p_normal; remote_addres=150.183.5.101; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; 290 290 (ibmy) queue=parallel; remote_addres=165.132.26.58; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; 291 (lctit) queue= test; remote_addres=172.17.75.161; submcom=/n1ge/TITECH_GRID/tools/bin/n1ge;;291 (lctit) queue=default; remote_addres=172.17.75.161; submcom=/n1ge/TITECH_GRID/tools/bin/n1ge;; 292 292 (nech) qsubmem=memsz_job; qsubtime=cputim_job; remote_addres=136.172.44.147; submcom="/usr/local/bin/qsub";; 293 293 (neck) qsubmem=memsz_job; qsubtime=cputim_job; remote_addres=133.5.178.11; submcom="/usr/bin/nqsII/qsub";; … … 327 327 esac;; 328 328 (lctit) case $ndq in 329 ( cs|default|high|test)error=false;;329 (default|high|bes1|bes2|sla1|sla2) error=false;; 330 330 (*) error=true;; 331 331 esac;; … … 694 694 #$ -S /bin/bash 695 695 cd $job_catalog 696 PATH=$job_catalog:${job_catalog}/../pub:\$PATH697 e xportPATH696 export PATH=$PALM_BIN:\$PATH 697 echo \$PATH 698 698 699 699 %%END%% … … 866 866 # EIGENTLICHE JOB-DATEI AN QSUB-KOMMANDOS ANHAENGEN 867 867 cat $file_to_send >> $job_to_send 868 868 869 if [[ $remote_host = ibm ]] 869 870 then 870 871 echo " " >> $job_to_send 871 872 echo "exit" >> $job_to_send 873 fi 874 if [[ $remote_host = lctit ]] 875 then 876 echo " " >> $job_to_send 877 echo "rm ~/job_queue/$job_on_remhost" >> $job_to_send 872 878 fi 873 879 … … 1020 1026 echo "$submcom $job_on_remhost" 1021 1027 chmod u+x $job_on_remhost 1022 sleep 5 # WEIL N1GE IM HINTERGRUND ARBEITET UND DATEI SONST EVTL.1023 # SCHON WIEDER GELOESCT IST1024 1028 elif [[ $local_host = nech ]] 1025 1029 then … … 1033 1037 qsub $job_on_remhost 1034 1038 fi 1035 rm $job_on_remhost 1039 # JOBFILE DARF AUF LCTIT NICHT GELOESCHT WERDEN!! GESCHIEHT ERST AM JOBENDE 1040 [[ $local_host != lctit ]] && rm $job_on_remhost 1036 1041 cd - > /dev/null 1037 1042 fi -
palm/trunk/UTIL/interpret_config.f90
r21 r69 37 37 LOGICAL :: found 38 38 39 CALL local_getenv( 'cond1', 5, cond1, icond1 ) 40 CALL local_getenv( 'cond2', 5, cond2, icond2 ) 41 CALL local_getenv( 'config_file', 11, config_file, il ) 42 CALL local_getenv( 'do_remote', 9, do_remote, dummy ) 43 CALL local_getenv( 'do_trace', 8, do_trace, dummy ) 44 CALL local_getenv( 'host', 4, host, ihost ) 45 CALL local_getenv( 'input_list', 10, input_list, iinput_list ) 46 CALL local_getenv( 'interpreted_config_file', 23, icf, iicf ) 47 CALL local_getenv( 'localhost', 9, localhost, ilocalhost ) 48 CALL local_getenv( 'output_list', 11, output_list, ioutput_list ) 39 NAMELIST /mrun_environment/ cond1, cond2, config_file, do_remote, do_trace, & 40 host, input_list, icf, localhost, output_list 41 42 43 OPEN ( 1, FILE='.mrun_environment', FORM='FORMATTED' ) 44 READ ( 1, mrun_environment ) 45 46 icond1 = LEN_TRIM( cond1 ) 47 icond2 = LEN_TRIM( cond2 ) 48 il = LEN_TRIM( config_file ) 49 ihost = LEN_TRIM( host ) 50 iinput_list = LEN_TRIM( input_list ) 51 iicf = LEN_TRIM( icf ) 52 ilocalhost = LEN_TRIM( localhost ) 53 ioutput_list = LEN_TRIM( output_list ) 54 55 ! CALL local_getenv( 'cond1', 5, cond1, icond1 ) 56 ! CALL local_getenv( 'cond2', 5, cond2, icond2 ) 57 ! CALL local_getenv( 'config_file', 11, config_file, il ) 58 ! CALL local_getenv( 'do_remote', 9, do_remote, dummy ) 59 ! CALL local_getenv( 'do_trace', 8, do_trace, dummy ) 60 ! CALL local_getenv( 'host', 4, host, ihost ) 61 ! CALL local_getenv( 'input_list', 10, input_list, iinput_list ) 62 ! CALL local_getenv( 'interpreted_config_file', 23, icf, iicf ) 63 ! CALL local_getenv( 'localhost', 9, localhost, ilocalhost ) 64 ! CALL local_getenv( 'output_list', 11, output_list, ioutput_list ) 49 65 iolist = input_list(1:iinput_list) // output_list(1:ioutput_list) 50 66 … … 85 101 !-- Achtung: Auf hpmuk und vpp sind nur die Variablen bekannt, die 86 102 !-- von MRUN exportiert wurden! 87 CALL local_getenv( var, ivar, value_mrun, ivalue_mrun ) 103 ! CALL local_getenv( var, ivar, value_mrun, ivalue_mrun ) 104 value_mrun = '' 105 ivalue_mrun = 1 88 106 89 107 !
Note: See TracChangeset
for help on using the changeset viewer.