- Timestamp:
- Jun 5, 2012 9:56:53 AM (12 years ago)
- Location:
- palm/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/.mrun.config.lcxe6
r911 r920 30 30 # 31 31 %tmp_user_catalog /work/<replace by your CrayXE6 username> lcxe6 parallel 32 %tmp_data_catalog /work/<replace by your CrayXE6 username>/tmp/ lcxe6 parallel 32 33 %compiler_name ftn lcxe6 parallel 33 34 %compiler_name_ser ftn lcxe6 parallel -
palm/trunk/SCRIPTS/mbuild
r892 r920 133 133 # bugfixes for the parameter file check, initial 134 134 # commands on ssh calls sourced out to .mrun.config 135 # 05/06/12 - Bjoern - bugfixes for execution of login_init_cmd 135 136 136 137 … … 1323 1324 if [[ $remote_host = lcxe6 ]] 1324 1325 then 1325 $init_cmds 1326 1327 eval $init_cmds 1328 1326 1329 fi 1327 1330 -
palm/trunk/SCRIPTS/mrun
r892 r920 257 257 # bugfixes for the parameter file check, initial 258 258 # commands on ssh calls sourced out to .mrun.config 259 259 # 05/06/12 - Bjoern - bugfixes for the parameter file check on lcxe6. 260 # combine_plot_fields can be switched off by the 261 # new mrun option -Z 260 262 261 263 … … 273 275 archive_system=none 274 276 check_namelist_files=true 277 combine_plot_fields=true 275 278 compiler_name="" 276 279 cond1="" … … 505 508 # SHELLSCRIPT-OPTIONEN EINLESEN UND KOMMANDO NEU ZUSAMMENSETZEN, FALLS ES 506 509 # FUER FOLGEJOBS BENOETIGT WIRD 507 while getopts :a:AbBc:Cd:D:Fg:G:h:H:i:IkK:m:M:n:o:O:p:P:q:r:R:s:St:T:u:U:vw:xX:yY:z option510 while getopts :a:AbBc:Cd:D:Fg:G:h:H:i:IkK:m:M:n:o:O:p:P:q:r:R:s:St:T:u:U:vw:xX:yY:zZ option 508 511 do 509 512 case $option in … … 548 551 (Y) run_coupled_model=true; coupled_dist=$OPTARG; mc="$mc -Y'$OPTARG'";; 549 552 (z) check_namelist_files=false; mc="$mc -z";; 553 (Z) combine_plot_fields=false; mc="$mc -Z";; 550 554 (\?) printf "\n +++ unknown option $OPTARG \n" 551 555 printf "\n --> type \"$0 ?\" for available options \n" … … 564 568 then 565 569 (printf "\n *** mrun can be called as follows:\n" 566 printf "\n $mrun_script_name -b -c.. -d.. -D.. -f.. -F -h.. -i.. -I -K.. -m.. -o.. -p.. -r.. -R -s.. -t.. -T.. -v -x -X.. -y -Y.. <modus>\n"570 printf "\n $mrun_script_name -b -c.. -d.. -D.. -f.. -F -h.. -i.. -I -K.. -m.. -o.. -p.. -r.. -R -s.. -t.. -T.. -v -x -X.. -y -Y.. -z -Z <modus> \n" 567 571 printf "\n Description of available options:\n" 568 572 printf "\n Option Description Default-Value" … … 608 612 printf "\n -Y run coupled model, \"#1 #2\" with" 609 613 printf "\n #1 atmosphere and #2 ocean processors \"#/2 #/2\" depending on -X" 610 printf "\n -z no parameter file check ---" 614 printf "\n -z disable a priori parameter file check ---" 615 printf "\n -Z skip combine_plot_fields at the end of " 616 printf "\n the simulation ---" 611 617 printf "\n " 612 618 printf "\n Possible values of positional parameter <modus>:" … … 1339 1345 eval pathname=${pathin[$i]} 1340 1346 1347 # SAVE INPUT FILE NAME FOR PARAMETER FILE CHECK 1348 if [[ ("${transin[$i]}" = job) && (-f $filename) ]] 1349 then 1350 filename_input=$filename 1351 fi 1341 1352 1342 1353 # PRUEFEN AUF VORHANDENSEIN … … 1428 1439 fi 1429 1440 done 1430 1431 1441 1432 1442 # VOLLSTAENDIGE DATEINAMEN (OHNE $ ODER ~) DER OUTPUT-FILES BILDEN, 1433 1443 # OUTPUT-DATEIEN AUF VORHANDENSEIN PRUEFEN UND EVTL. HOECHSTE ZYKLUSNUMMER … … 2386 2396 2387 2397 #CHECK IF NAMELIST_FILE_CHECK HAS BEEN COMPILED SUCCESSFULLY 2388 if [[ ! -f $check_depository/check_namelist_files.tar || ! -f $PALM_BIN/check_namelist_files.x ]] 2398 if [[ ! -f $check_depository/check_namelist_files.tar ]] 2399 then 2400 skip_check=true 2401 reason="run on remote host or parameter file check has not been compiled." 2402 fi 2403 if [[ ! -f $PALM_BIN/check_namelist_files.x ]] 2389 2404 then 2390 2405 skip_check=true … … 2426 2441 2427 2442 #SKIP CHECK IN CASE OF RESTART RUN: CHECK WHETHER THE LAST CHAR IS "f" IN PARIN 2428 ((last_char = `echo $filename | wc -c` - 1))2429 last_char=`echo $filename |cut -c$last_char`2443 ((last_char = `echo $filename_input | wc -c` - 1)) 2444 last_char=`echo $filename_input |cut -c$last_char` 2430 2445 if [[ "$last_char" == "f" ]] 2431 2446 then … … 2473 2488 2474 2489 # ERROR IF NO PARAMETER FILE WAS FOUND, OTHERWISE PROCEED 2475 if [[ ! -f $filename]]2476 then 2477 printf "\n\n +++ ERROR: parameter file ($filename ) not found."2490 if [[ (! -f $filename_input) && ( "$filename_input" != "") ]] 2491 then 2492 printf "\n\n +++ ERROR: parameter file ($filename_input) not found." 2478 2493 locat=check_namelist; exit 2479 2494 fi … … 2485 2500 2486 2501 2487 filenamef="${filename }f"2502 filenamef="${filename_input}f" 2488 2503 if [[ ! -f $filenamef ]] 2489 2504 then … … 2563 2578 fi 2564 2579 2565 cp $filename ./PARIN2580 cp $filename_input ./PARIN 2566 2581 if [[ $check_restart == 1 ]] 2567 2582 then … … 2569 2584 fi 2570 2585 2571 cat ${pathname}/${fname}${topo_suffix}2572 2586 if [[ -f ${pathname}/${fname}${topo_suffix} && $skip_check == false ]] 2573 2587 then … … 2622 2636 2623 2637 # CHECKING THE P3D FILE 2624 printf "\n\n (1) checking $filename "2638 printf "\n\n (1) checking $filename_input" 2625 2639 echo "$numprocs 0" > VARIN 2626 2640 errors=`./check_namelist_files.x < VARIN 2>&1` … … 2909 2923 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN 2910 2924 else 2911 [[ $localhost = lcxe6]] && eval $init_cmds2925 [[ "$init_cmds" != "" ]] && eval $init_cmds 2912 2926 [[ "$module_calls" != "" ]] && eval $module_calls 2913 2927 make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT="$cpp_options" F90FLAGS="$fopts" LDFLAGS="$lopts" … … 3939 3953 # Call of combine_plot_fields in order to merge single files written 3940 3954 # by each PE into one file. 3941 if [[ ! -f ${PALM_BIN}/combine_plot_fields${block}.x ]] 3942 then 3943 printf "\n\n\n +++ WARNING: no combine_plot_fields found for given block \"$cond1 $cond2\"" 3944 printf "\n 2d- and/or 3d-data may be incomplete!" 3945 printf "\n Run \"mbuild -u -h $localhost\" to generate utilities for this block.\n" 3946 else 3947 printf "\n\n\n *** post-processing: now executing \"combine_plot_fields${block}.x\" ..." 3948 combine_plot_fields${block}.x 3949 fi 3955 if [[ ! -f ${PALM_BIN}/combine_plot_fields${block}.x ]] 3956 then 3957 printf "\n\n\n +++ WARNING: no combine_plot_fields found for given block \"$cond1 $cond2\"" 3958 printf "\n 2d- and/or 3d-data may be incomplete!" 3959 printf "\n Run \"mbuild -u -h $localhost\" to generate utilities for this block.\n" 3960 elif [[ "$combine_plot_fields" == true ]] 3961 then 3962 printf "\n\n\n *** post-processing: now executing \"combine_plot_fields${block}.x\" ..." 3963 combine_plot_fields${block}.x 3964 else 3965 # Temporary solution to skip combine_plot_fields. This is necessary in case of huge amount of 3966 # data output. To do: extend this branch by creating a batch job for combine_plot_fields. 3967 printf "\n\n\n *** post-processing: skipping combine_plot_fields (-Z option set) ..." 3968 fi 3950 3969 3951 3970 … … 4773 4792 [[ "$ocean_file_appendix" = true ]] && mrun_com=${mrun_com}" -y" 4774 4793 [[ $run_coupled_model = true ]] && mrun_com=${mrun_com}" -Y \"$coupled_dist\"" 4794 [[ "$check_namelist_files" = false ]] && mrun_com=${mrun_com}" -z" 4795 [[ "$combine_plot_fields" = false ]] && mrun_com=${mrun_com}" -Z" 4775 4796 [[ "$max_par_io_str" != "" ]] && mrun_com=${mrun_com}" -w $max_par_io_str" 4776 4797 if [[ $do_remote = true ]] -
palm/trunk/UTIL/mrungui/mainwindow.cpp
r819 r920 2 2 // Current revisions: 3 3 // ----------------- 4 // 4 // Added -Z option (disable combine_plot_fields) 5 5 // 6 6 // Former revisions: … … 1088 1088 deactivate_flag("x"); 1089 1089 } 1090 1091 status = ui->check_Z->checkState(); 1092 1093 if (status == 2) 1094 { 1095 activate_flag("Z"); 1096 } 1097 else 1098 { 1099 deactivate_flag("Z"); 1100 } 1090 1101 return 0; 1091 1102 … … 1438 1449 { 1439 1450 ui->check_A->setChecked(true); 1440 1441 1451 } 1442 1452 else if ( parameter == "b") … … 1475 1485 advanced = true; 1476 1486 } 1487 else if ( parameter == "Z") 1488 { 1489 ui->check_Z->setChecked(true); 1490 advanced = true; 1491 } 1477 1492 else if ( parameter == "m") 1478 1493 { -
palm/trunk/UTIL/mrungui/mainwindow.ui
r859 r920 945 945 <rect> 946 946 <x>280</x> 947 <y>2 35</y>947 <y>255</y> 948 948 <width>111</width> 949 949 <height>25</height> … … 970 970 <rect> 971 971 <x>200</x> 972 <y>3 15</y>972 <y>330</y> 973 973 <width>191</width> 974 974 <height>25</height> … … 983 983 <rect> 984 984 <x>200</x> 985 <y> 290</y>985 <y>305</y> 986 986 <width>191</width> 987 987 <height>25</height> … … 1012 1012 <rect> 1013 1013 <x>10</x> 1014 <y>2 20</y>1014 <y>240</y> 1015 1015 <width>381</width> 1016 1016 <height>16</height> … … 1025 1025 <rect> 1026 1026 <x>100</x> 1027 <y>2 40</y>1027 <y>260</y> 1028 1028 <width>91</width> 1029 1029 <height>15</height> … … 1041 1041 <rect> 1042 1042 <x>200</x> 1043 <y>2 35</y>1043 <y>255</y> 1044 1044 <width>71</width> 1045 1045 <height>25</height> … … 1051 1051 <rect> 1052 1052 <x>30</x> 1053 <y> 295</y>1053 <y>310</y> 1054 1054 <width>161</width> 1055 1055 <height>16</height> … … 1067 1067 <rect> 1068 1068 <x>10</x> 1069 <y>3 20</y>1069 <y>335</y> 1070 1070 <width>181</width> 1071 1071 <height>16</height> … … 1083 1083 <rect> 1084 1084 <x>20</x> 1085 <y>3 45</y>1085 <y>360</y> 1086 1086 <width>171</width> 1087 1087 <height>16</height> … … 1099 1099 <rect> 1100 1100 <x>200</x> 1101 <y>3 40</y>1101 <y>355</y> 1102 1102 <width>191</width> 1103 1103 <height>25</height> … … 1112 1112 <rect> 1113 1113 <x>60</x> 1114 <y>3 70</y>1114 <y>385</y> 1115 1115 <width>131</width> 1116 1116 <height>16</height> … … 1128 1128 <rect> 1129 1129 <x>200</x> 1130 <y>3 65</y>1130 <y>380</y> 1131 1131 <width>191</width> 1132 1132 <height>25</height> … … 1141 1141 <rect> 1142 1142 <x>20</x> 1143 <y> 395</y>1143 <y>410</y> 1144 1144 <width>171</width> 1145 <height>31</height> 1146 </rect> 1147 </property> 1148 <property name="text"> 1149 <string>Filenames of routines to be 1150 compiled:</string> 1145 <height>16</height> 1146 </rect> 1147 </property> 1148 <property name="text"> 1149 <string>Filenames to be compiled:</string> 1151 1150 </property> 1152 1151 <property name="alignment"> … … 1284 1283 <rect> 1285 1284 <x>30</x> 1286 <y>2 65</y>1285 <y>285</y> 1287 1286 <width>161</width> 1288 1287 <height>16</height> … … 1300 1299 <rect> 1301 1300 <x>200</x> 1302 <y>2 60</y>1301 <y>280</y> 1303 1302 <width>191</width> 1304 1303 <height>25</height> … … 1307 1306 <property name="text"> 1308 1307 <string/> 1308 </property> 1309 </widget> 1310 <widget class="QCheckBox" name="check_Z"> 1311 <property name="geometry"> 1312 <rect> 1313 <x>10</x> 1314 <y>225</y> 1315 <width>421</width> 1316 <height>23</height> 1317 </rect> 1318 </property> 1319 <property name="text"> 1320 <string>-Z (disable combine_plot_fields at the end of job)</string> 1309 1321 </property> 1310 1322 </widget> … … 1426 1438 </action> 1427 1439 </widget> 1428 <layoutdefault spacing=" 6" margin="11"/>1440 <layoutdefault spacing="1" margin="11"/> 1429 1441 <tabstops> 1430 1442 <tabstop>pushButton</tabstop> … … 2082 2094 <hint type="sourcelabel"> 2083 2095 <x>756</x> 2084 <y>3 03</y>2096 <y>332</y> 2085 2097 </hint> 2086 2098 <hint type="destinationlabel"> … … 2098 2110 <hint type="sourcelabel"> 2099 2111 <x>796</x> 2100 <y>3 58</y>2112 <y>387</y> 2101 2113 </hint> 2102 2114 <hint type="destinationlabel"> … … 2130 2142 <hint type="sourcelabel"> 2131 2143 <x>850</x> 2132 <y>4 10</y>2144 <y>438</y> 2133 2145 </hint> 2134 2146 <hint type="destinationlabel"> … … 2226 2238 <hint type="sourcelabel"> 2227 2239 <x>887</x> 2228 <y>3 03</y>2240 <y>332</y> 2229 2241 </hint> 2230 2242 <hint type="destinationlabel"> … … 2423 2435 <x>5</x> 2424 2436 <y>594</y> 2437 </hint> 2438 </hints> 2439 </connection> 2440 <connection> 2441 <sender>check_Z</sender> 2442 <signal>stateChanged(int)</signal> 2443 <receiver>MainWindow</receiver> 2444 <slot>check_flags()</slot> 2445 <hints> 2446 <hint type="sourcelabel"> 2447 <x>730</x> 2448 <y>295</y> 2449 </hint> 2450 <hint type="destinationlabel"> 2451 <x>458</x> 2452 <y>344</y> 2425 2453 </hint> 2426 2454 </hints>
Note: See TracChangeset
for help on using the changeset viewer.