Changeset 818
- Timestamp:
- Feb 8, 2012 4:11:23 PM (13 years ago)
- Location:
- palm/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r811 r818 128 128 # 31/01/12 - BjornM- bugfix for compilation of utility programs on 129 129 # multiple localhost branches 130 # 08/03/12 - BjornM- bugfix: cpp directive for namelist check program 131 # corrected 130 132 131 133 … … 1421 1423 rm -rf ${mainprog}_sources_check.tar 1422 1424 1423 copts_check="-cpp -D_ parallel -D__check"1425 copts_check="-cpp -D__parallel -D__check" 1424 1426 make -f Makefile_check $make_options F90=$compiler_name_ser COPT="$copts_check" 1425 1427 … … 1433 1435 cd $check_depository_path 1434 1436 printf "\n\n" 1435 echo " *** skipped compilation of mrun GUI (already."1437 echo " *** skipped compilation of mrun GUI." 1436 1438 printf "\n\n" 1437 1439 echo " *** skipped compilation of check_namelist_files." -
palm/trunk/SCRIPTS/mrun
r815 r818 239 239 # 03/02/12 - BjornM - namelist file check temporary disabled 240 240 # until severel bugs are fixed 241 # 08/02/12 - BjornM - bugfixes: skipping namelist file check in case of 242 # restart runs. check is now possible with topography 243 # and the -v (silent) option is considered 241 244 242 245 # VARIABLENVEREINBARUNGEN + DEFAULTWERTE … … 2404 2407 2405 2408 #### PERFORM PARAMETER FILE CHECK (COUPLED RUNS ARE NOT SUPPORTED YET) 2406 skip_check= true2407 if [[ $check_namelist_files == false || $fromhost != $localhost || $run_coupled_model == true ]]2409 skip_check=false 2410 if [[ $check_namelist_files == false || $fromhost != $localhost || $run_coupled_model == true || $restart_run == true ]] 2408 2411 then 2409 2412 skip_check=true … … 2463 2466 printf "\n +++ no PARIN list entry found for d3f in the configuration file." 2464 2467 fi 2468 # GET TOPOGRAPHY PARAMETER FILE SUFFIX (USUALLY "_P3DF"). THIS FILE MIGHT IS 2469 # NOT NECESSARILY REQUIRED 2470 line="" 2471 found=false 2472 grep "d3f" $config_file | grep "TOPOGRAPHY_DATA" > $tmp_check 2473 while read line1 2474 do 2475 line="$line1" 2476 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 2477 then 2478 topo_suffix=`echo $line | tr -s " " | cut -d" " -s -f5` 2479 found=true 2480 fi 2481 done < $tmp_check 2482 2483 if [[ $found = false ]] 2484 then 2485 printf "\n +++ no TOPOGRAPHY list entry found in the configuration file." 2486 fi 2465 2487 2466 2488 rm -rf ${working_directory}/tmp_check … … 2498 2520 printf "\n\n" 2499 2521 2500 while [[ "$answer" != c && "$answer" != C && "$answer" != a && "$answer" != A ]] 2501 do 2502 printf " >>> continue anyway (c(ontinue)/a(bort)) ? " 2503 read answer 2504 done 2505 if [[ $answer = a || $answer = A ]] 2506 then 2507 printf "\n +++ Aborting...." 2508 locat=normal; exit 2522 if [[ $silent == false ]] 2523 then 2524 while [[ "$answer" != c && "$answer" != C && "$answer" != a && "$answer" != A ]] 2525 do 2526 printf " >>> continue anyway (c(ontinue)/a(bort)) ? " 2527 read answer 2528 done 2529 if [[ $answer = a || $answer = A ]] 2530 then 2531 printf "\n +++ Aborting...." 2532 locat=normal; exit 2533 fi 2509 2534 fi 2510 2535 else … … 2541 2566 answer=dummy 2542 2567 printf "\n\n" 2543 while [[ "$answer" != c && "$answer" != C && "$answer" != a && "$answer" != A ]] 2544 do 2545 printf " >>> continue anyway (c(ontinue)/a(bort)) ? " 2546 read answer 2547 done 2548 if [[ $answer = a || $answer = A ]] 2549 then 2550 printf "\n +++ Aborting..." 2551 rm -rf $check_sources 2552 locat=normal; exit 2568 if [[ $silent == false ]] 2569 then 2570 while [[ "$answer" != c && "$answer" != C && "$answer" != a && "$answer" != A ]] 2571 do 2572 printf " >>> continue anyway (c(ontinue)/a(bort)) ? " 2573 read answer 2574 done 2575 if [[ $answer = a || $answer = A ]] 2576 then 2577 printf "\n +++ Aborting..." 2578 rm -rf $check_sources 2579 locat=normal; exit 2580 else 2581 skip_check=true 2582 fi 2553 2583 else 2554 2584 skip_check=true … … 2563 2593 then 2564 2594 cp $working_directory/JOBS/$fname/INPUT/${fname}${p3df_suffix} ./PARINF 2595 fi 2596 2597 2598 if [[ -f $working_directory/JOBS/$fname/INPUT/${fname}${topo_suffix} && $skip_check == false ]] 2599 then 2600 printf "\n *** adding topography data" 2601 cp $working_directory/JOBS/$fname/INPUT/${fname}${topo_suffix} ./TOPOGRAPHY_DATA 2602 2603 # IN CASE OF TOPOGRAPHY AND HIGH GRID POINT NUMBERS, THE STACK SIZE 2604 # MUST BE INCREASED. THIS IS DUE TO THE ARRAY nzb_local AND topo_height, 2605 # WHICH REQUIRE SUFFICIENT MEMORY 2606 ulimit -s unlimited 2565 2607 fi 2566 2608 … … 2577 2619 2578 2620 # SAFETY CHECK: ONLY PROCEED IF THE PARAMETER CHECK PROGRAM WAS PROPERLY COMPILED 2579 if [[ ! -f check_namelist_files.x ]] then2621 if [[ ! -f check_namelist_files.x && $skip_check == false ]] then 2580 2622 printf "\n +++ WARNING: check_namelist_files.x not found." 2581 2623 answer=dummy 2582 2624 printf "\n\n" 2583 while [[ "$answer" != c && "$answer" != C && "$answer" != a && "$answer" != A ]] 2584 do 2585 printf " >>> continue anyway (c(ontinue)/a(bort)) ? " 2586 read answer 2587 done 2588 if [[ $answer = a || $answer = A ]] 2589 then 2590 printf "\n +++ Aborting..." 2591 rm -rf $check_sources 2592 locat=normal; exit 2593 else 2594 printf "\n *** Skipping parameter file check." 2595 fi 2625 2626 if [[ $silent == false ]] 2627 then 2628 while [[ "$answer" != c && "$answer" != C && "$answer" != a && "$answer" != A ]] 2629 do 2630 printf " >>> continue anyway (c(ontinue)/a(bort)) ? " 2631 read answer 2632 done 2633 if [[ $answer = a || $answer = A ]] 2634 then 2635 printf "\n +++ Aborting..." 2636 rm -rf $check_sources 2637 locat=normal; exit 2638 else 2639 printf "\n *** Skipping parameter file check." 2640 2641 fi 2642 fi 2643 2596 2644 elif [[ $skip_check == false ]] 2597 2645 then … … 2694 2742 fi 2695 2743 2744 # DELETE TEMPORARY DIRECTORY AND FINISH NAMELIST FILE CHECK 2745 rm -rf $check_sources 2696 2746 cd $working_directory 2697 2747 -
palm/trunk/SOURCE/Makefile_check
r808 r818 4 4 # Current revisions: 5 5 # ------------------ 6 # 6 # Added all user routines. 7 7 # 8 8 # Former revisions: … … 27 27 message.f90 modules.f90 package_parin.f90 parin.f90 poisfft.f90 \ 28 28 poisfft_hybrid.f90 singleton.f90 subsidence.f90 temperton_fft.f90 \ 29 user_3d_data_averaging.f90 user_actions.f90 \ 30 user_additional_routines.f90 user_advec_particles.f90 \ 29 31 user_check_data_output.f90 user_check_data_output_pr.f90 \ 30 user_check_parameters.f90 user_init.f90 user_init_3d_model.f90 \ 31 user_init_grid.f90 user_init_particles.f90 user_init_plant_canopy.f90 \ 32 user_module.f90 user_parin.f90 \ 32 user_check_parameters.f90 user_data_output_2d.f90 \ 33 user_data_output_3d.f90 user_data_output_dvrp.f90 user_data_output_mask.f90 \ 34 user_define_netcdf_grid.f90 user_dvrp_coltab.f90 user_header.f90 \ 35 user_init.f90 user_init_3d_model.f90 user_init_grid.f90 \ 36 user_init_particles.f90 user_init_plant_canopy.f90 \ 37 user_last_actions.f90 user_module.f90 user_parin.f90 \ 38 user_particle_attributes.f90 user_read_restart_data.f90 \ 39 user_spectra.f90 user_statistics.f90 \ 40 41 33 42 34 43 … … 38 47 modules.o package_parin.o parin.o poisfft.o \ 39 48 poisfft_hybrid.o singleton.o subsidence.o temperton_fft.o \ 40 user_check_data_output.o user_check_data_output_pr.o \ 41 user_check_parameters.o user_init.o user_init_3d_model.o \ 42 user_init_grid.o user_init_particles.o user_init_plant_canopy.o \ 43 user_module.o user_parin.o \ 49 user_3d_data_averaging.o user_actions.o user_additional_routines.o \ 50 user_advec_particles.o user_check_data_output.o \ 51 user_check_data_output_pr.o user_check_parameters.o \ 52 user_data_output_2d.o user_data_output_3d.o user_data_output_mask.o user_data_output_dvrp.o \ 53 user_define_netcdf_grid.o user_dvrp_coltab.o user_header.o \ 54 user_init.o user_init_3d_model.o user_init_grid.o \ 55 user_init_particles.o user_init_plant_canopy.o user_last_actions.o \ 56 user_module.o user_parin.o user_particle_attributes.o \ 57 user_read_restart_data.o user_spectra.o user_statistics.o \ 44 58 45 59 CC = cc … … 88 102 subsidence.o: modules.o 89 103 temperton_fft.o: modules.o 104 user_3d_data_averaging.o: modules.o user_module.o 105 user_actions.o: modules.o user_module.o 106 user_additional_routines.o: modules.o user_module.o 107 user_advec_particles.o: modules.o user_module.o 108 user_check_data_output.o: modules.o user_module.o 109 user_check_data_output_pr.o: modules.o user_module.o 110 user_check_parameters.o: modules.o user_module.o 111 user_data_output_2d.o: modules.o user_module.o 112 user_data_output_3d.o: modules.o user_module.o 113 user_data_output_mask.o: modules.o user_module.o 114 user_data_output_dvrp.o: modules.o user_module.o 115 user_define_netcdf_grid.o: modules.o user_module.o 116 user_dvrp_coltab.o: modules.o user_module.o 117 user_header.o: modules.o user_module.o 90 118 user_init.o: modules.o user_module.o 91 119 user_init_3d_model.o: modules.o user_module.o … … 93 121 user_init_particles.o: modules.o user_module.o 94 122 user_init_plant_canopy.o: modules.o user_module.o 123 user_last_actions.o: modules.o user_module.o 95 124 user_module.o: user_module.f90 96 125 user_parin.o: modules.o user_module.o 97 user_check_parameters.o: modules.o user_module.o 98 user_check_data_output.o: modules.o user_module.o 99 user_check_data_output_pr.o: modules.o user_module.o 126 user_particle_attributes.o: modules.o user_module.o 127 user_read_restart_data.o: modules.o user_module.o 128 user_spectra.o: modules.o user_module.o 129 user_statistics.o: modules.o user_module.o -
palm/trunk/SOURCE/check_namelist_files.f90
r808 r818 35 35 10 CONTINUE 36 36 37 37 38 ! 38 39 !-- Read control parameters from NAMELIST files and read environment-variables1 … … 48 49 49 50 50 !51 51 !-- Check control parameters and deduce further quantities 52 52 CALL check_parameters 53 53 54 54 55 55 56 END PROGRAM check_namelist_files -
palm/trunk/SOURCE/init_grid.f90
r810 r818 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! 6 ! Bugfix: topo_height is only required if topography is used. It is thus now 7 ! allocated in the topography branch 7 8 ! 8 9 ! Former revisions: … … 38 39 ! 39 40 ! 555 2010-09-07 07:32:53Z raasch 40 ! Bugfix: default setting of nzb_local for flat topograph ie41 ! Bugfix: default setting of nzb_local for flat topography 41 42 ! 42 43 ! 274 2009-03-26 15:11:21Z heinze … … 100 101 REAL :: dx_l, dy_l, dz_stretched 101 102 102 REAL, DIMENSION( 0:ny,0:nx):: topo_height103 REAL, DIMENSION(:,:), ALLOCATABLE :: topo_height 103 104 104 105 REAL, DIMENSION(:,:,:), ALLOCATABLE :: distance … … 331 332 ALLOCATE( l_wall(nzb:nzt+1,nysg:nyng,nxlg:nxrg) ) 332 333 334 333 335 nzb_s_inner = nzb; nzb_s_outer = nzb 334 336 nzb_u_inner = nzb; nzb_u_outer = nzb … … 517 519 CASE ( 'read_from_file' ) 518 520 521 ALLOCATE ( topo_height(0:ny,0:nx) ) 522 519 523 DO ii = 0, io_blocks-1 520 524 IF ( ii == io_group ) THEN … … 552 556 ENDDO 553 557 ENDDO 558 559 DEALLOCATE ( topo_height ) 554 560 ! 555 561 !-- Add cyclic boundaries (additional layers are for calculating -
palm/trunk/UTIL/mrungui/mainwindow.cpp
r812 r818 2 2 // Current revisions: 3 3 // ----------------- 4 // 4 // New: flag parameter -z implemented (used for skipping parameter file check) 5 5 // 6 6 // Former revisions: … … 199 199 ui->check_advanced->setEnabled(false); 200 200 ui->check_verbose->setEnabled(false); 201 ui->check_namelist_check->setEnabled(false); 201 202 ui->button_start->setEnabled(false); 202 203 ui->button_start->setText("wait..."); … … 255 256 ui->check_advanced->setEnabled(true); 256 257 ui->check_verbose->setEnabled(true); 258 ui->check_namelist_check->setEnabled(true); 257 259 ui->button_start->setEnabled(true); 258 260 ui->action_save->setEnabled(true); … … 990 992 } 991 993 994 status = ui->check_namelist_check->checkState(); 995 996 if (status == 2) 997 { 998 activate_flag("z"); 999 } 1000 else 1001 { 1002 deactivate_flag("z"); 1003 } 1004 992 1005 status = ui->check_A->checkState(); 993 1006 … … 1414 1427 { 1415 1428 ui->check_verbose->setChecked(true); 1429 } 1430 else if ( parameter == "z") 1431 { 1432 ui->check_namelist_check->setChecked(true); 1416 1433 } 1417 1434 else if ( parameter == "A") -
palm/trunk/UTIL/mrungui/mainwindow.ui
r809 r818 46 46 <rect> 47 47 <x>10</x> 48 <y>59 0</y>48 <y>595</y> 49 49 <width>901</width> 50 <height> 71</height>50 <height>61</height> 51 51 </rect> 52 52 </property> … … 90 90 <rect> 91 91 <x>10</x> 92 <y> 40</y>92 <y>35</y> 93 93 <width>881</width> 94 94 <height>25</height> … … 400 400 <rect> 401 401 <x>10</x> 402 <y>32 5</y>402 <y>320</y> 403 403 <width>491</width> 404 <height>2 61</height>404 <height>271</height> 405 405 </rect> 406 406 </property> … … 690 690 <rect> 691 691 <x>7</x> 692 <y>1 60</y>692 <y>155</y> 693 693 <width>481</width> 694 694 <height>16</height> … … 703 703 <rect> 704 704 <x>10</x> 705 <y>1 80</y>705 <y>170</y> 706 706 <width>121</width> 707 707 <height>23</height> … … 716 716 <rect> 717 717 <x>10</x> 718 <y> 205</y>718 <y>195</y> 719 719 <width>271</width> 720 720 <height>23</height> … … 777 777 <rect> 778 778 <x>10</x> 779 <y>2 30</y>779 <y>220</y> 780 780 <width>261</width> 781 781 <height>23</height> … … 783 783 </property> 784 784 <property name="text"> 785 <string>No prompt on confirmation </string>785 <string>No prompt on confirmation (silent)</string> 786 786 </property> 787 787 </widget> … … 793 793 <rect> 794 794 <x>130</x> 795 <y>1 80</y>795 <y>170</y> 796 796 <width>241</width> 797 797 <height>21</height> … … 806 806 <property name="text"> 807 807 <string/> 808 </property> 809 </widget> 810 <widget class="QCheckBox" name="check_namelist_check"> 811 <property name="geometry"> 812 <rect> 813 <x>10</x> 814 <y>245</y> 815 <width>261</width> 816 <height>23</height> 817 </rect> 818 </property> 819 <property name="text"> 820 <string>Skip namelist file check</string> 808 821 </property> 809 822 </widget> … … 1360 1373 <addaction name="action_about"/> 1361 1374 </widget> 1362 <widget class="QMenu" name="menuTools">1363 <property name="title">1364 <string>Tools</string>1365 </property>1366 <addaction name="actionCheck_parameter_file"/>1367 </widget>1368 1375 <addaction name="menuStart"/> 1369 <addaction name="menuTools"/>1370 1376 <addaction name="menuHelp"/> 1371 1377 </widget> … … 1484 1490 <hint type="sourcelabel"> 1485 1491 <x>160</x> 1486 <y>6 87</y>1492 <y>657</y> 1487 1493 </hint> 1488 1494 <hint type="destinationlabel"> … … 1500 1506 <hint type="sourcelabel"> 1501 1507 <x>73</x> 1502 <y>6 87</y>1508 <y>657</y> 1503 1509 </hint> 1504 1510 <hint type="destinationlabel"> … … 1756 1762 <hint type="sourcelabel"> 1757 1763 <x>72</x> 1758 <y>5 71</y>1764 <y>541</y> 1759 1765 </hint> 1760 1766 <hint type="destinationlabel"> … … 1772 1778 <hint type="sourcelabel"> 1773 1779 <x>76</x> 1774 <y>5 96</y>1780 <y>566</y> 1775 1781 </hint> 1776 1782 <hint type="destinationlabel"> … … 1788 1794 <hint type="sourcelabel"> 1789 1795 <x>53</x> 1790 <y> 626</y>1796 <y>591</y> 1791 1797 </hint> 1792 1798 <hint type="destinationlabel"> … … 1932 1938 <hint type="sourcelabel"> 1933 1939 <x>119</x> 1934 <y>40 7</y>1940 <y>403</y> 1935 1941 </hint> 1936 1942 <hint type="destinationlabel"> … … 1948 1954 <hint type="sourcelabel"> 1949 1955 <x>149</x> 1950 <y>4 31</y>1956 <y>428</y> 1951 1957 </hint> 1952 1958 <hint type="destinationlabel"> … … 1980 1986 <hint type="sourcelabel"> 1981 1987 <x>179</x> 1982 <y>4 82</y>1988 <y>478</y> 1983 1989 </hint> 1984 1990 <hint type="destinationlabel"> … … 2012 2018 <hint type="sourcelabel"> 2013 2019 <x>361</x> 2014 <y>42 9</y>2020 <y>428</y> 2015 2021 </hint> 2016 2022 <hint type="destinationlabel"> … … 2044 2050 <hint type="sourcelabel"> 2045 2051 <x>262</x> 2046 <y>50 8</y>2052 <y>503</y> 2047 2053 </hint> 2048 2054 <hint type="destinationlabel"> … … 2060 2066 <hint type="sourcelabel"> 2061 2067 <x>324</x> 2062 <y>50 4</y>2068 <y>503</y> 2063 2069 </hint> 2064 2070 <hint type="destinationlabel"> … … 2171 2177 <hints> 2172 2178 <hint type="sourcelabel"> 2173 <x>90 6</x>2179 <x>900</x> 2174 2180 <y>513</y> 2175 2181 </hint> … … 2187 2193 <hints> 2188 2194 <hint type="sourcelabel"> 2189 <x>9 19</x>2195 <x>900</x> 2190 2196 <y>538</y> 2191 2197 </hint> … … 2203 2209 <hints> 2204 2210 <hint type="sourcelabel"> 2205 <x>9 17</x>2211 <x>900</x> 2206 2212 <y>563</y> 2207 2213 </hint> … … 2252 2258 <hint type="sourcelabel"> 2253 2259 <x>307</x> 2254 <y>6 75</y>2260 <y>657</y> 2255 2261 </hint> 2256 2262 <hint type="destinationlabel"> … … 2267 2273 <hints> 2268 2274 <hint type="sourcelabel"> 2269 <x>90 4</x>2270 <y>3 33</y>2275 <x>900</x> 2276 <y>343</y> 2271 2277 </hint> 2272 2278 <hint type="destinationlabel"> … … 2401 2407 <x>4</x> 2402 2408 <y>122</y> 2409 </hint> 2410 </hints> 2411 </connection> 2412 <connection> 2413 <sender>check_namelist_check</sender> 2414 <signal>stateChanged(int)</signal> 2415 <receiver>MainWindow</receiver> 2416 <slot>check_flags()</slot> 2417 <hints> 2418 <hint type="sourcelabel"> 2419 <x>61</x> 2420 <y>609</y> 2421 </hint> 2422 <hint type="destinationlabel"> 2423 <x>5</x> 2424 <y>594</y> 2403 2425 </hint> 2404 2426 </hints>
Note: See TracChangeset
for help on using the changeset viewer.