Changeset 1402 for palm/trunk/SOURCE
- Timestamp:
- May 9, 2014 2:25:13 PM (11 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/Makefile
r1401 r1402 20 20 # Current revisions: 21 21 # ------------------ 22 # 22 # progress_bar added 23 23 # 24 24 # Former revisions: … … 207 207 mod_particle_attributes.f90 netcdf.f90 nudging.f90 \ 208 208 package_parin.f90 palm.f90 parin.f90 plant_canopy_model.f90 poisfft.f90 \ 209 poismg.f90 prandtl_fluxes.f90 pres.f90 print_1d.f90 \210 pro duction_e.f90 prognostic_equations.f90 random_function.f90 \209 poismg.f90 prandtl_fluxes.f90 pres.f90 print_1d.f90 production_e.f90 \ 210 prognostic_equations.f90 progress_bar.f90 random_function.f90 \ 211 211 random_gauss.f90 random_generator_parallel.f90 read_3d_binary.f90 \ 212 212 read_var_list.f90 run_control.f90 \ … … 372 372 package_parin.o: modules.o mod_kinds.o 373 373 palm.o: modules.o cpulog.o ls_forcing.o mod_kinds.o nudging.o 374 parin.o: modules.o cpulog.o mod_kinds.o 374 parin.o: modules.o cpulog.o mod_kinds.o progress_bar.o 375 375 plant_canopy_model.o: modules.o mod_kinds.o 376 376 poisfft.o: modules.o cpulog.o fft_xy.o mod_kinds.o tridia_solver.o … … 402 402 time_integration.o: modules.o advec_ws.o buoyancy.o calc_mean_profile.o \ 403 403 cpulog.o interaction_droplets_ptq.o ls_forcing.o mod_kinds.o \ 404 nudging.o production_e.o prognostic_equations.o user_actions.o404 nudging.o production_e.o prognostic_equations.o progress_bar.o user_actions.o 405 405 time_to_string.o: mod_kinds.o 406 406 timestep.o: modules.o cpulog.o mod_kinds.o -
palm/trunk/SOURCE/check_parameters.f90
r1401 r1402 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! location messages modified 23 23 ! 24 24 ! Former revisions: … … 268 268 269 269 270 CALL location_message( 'checking parameters' )270 CALL location_message( 'checking parameters', .FALSE. ) 271 271 272 272 ! … … 3702 3702 ENDIF 3703 3703 3704 CALL location_message( 'finished' )3704 CALL location_message( 'finished', .TRUE. ) 3705 3705 3706 3706 ! -
palm/trunk/SOURCE/cpulog.f90
r1370 r1402 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! location messages added 23 23 ! 24 24 ! Former revisions: … … 293 293 294 294 295 CALL location_message( 'calculating cpu statistics', .FALSE. ) 296 295 297 ! 296 298 !-- Compute cpu-times in seconds … … 532 534 ENDIF 533 535 536 CALL location_message( 'finished', .TRUE. ) 534 537 535 538 100 FORMAT (A/11('-')//'CPU measures for ',I5,' PEs (',I5,'(x) * ',I5,'(y', & -
palm/trunk/SOURCE/fft_xy.f90
r1399 r1402 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! fortran bugfix for r1392 23 23 ! 24 24 ! Former revisions: -
palm/trunk/SOURCE/init_3d_model.f90
r1401 r1402 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! location messages modified 23 23 ! 24 24 ! Former revisions: … … 234 234 235 235 236 CALL location_message( 'allocating arrays' )236 CALL location_message( 'allocating arrays', .FALSE. ) 237 237 ! 238 238 !-- Allocate arrays … … 612 612 intermediate_timestep_count = 1 ! needed when simulated_time = 0.0 613 613 614 CALL location_message( 'finished' )614 CALL location_message( 'finished', .TRUE. ) 615 615 ! 616 616 !-- Initialize model variables … … 622 622 IF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) THEN 623 623 624 CALL location_message( 'initializing with 1D model profiles' )624 CALL location_message( 'initializing with 1D model profiles', .FALSE. ) 625 625 ! 626 626 !-- Use solutions of the 1D model as initial profiles, … … 741 741 ENDIF 742 742 743 CALL location_message( 'finished' )743 CALL location_message( 'finished', .TRUE. ) 744 744 745 745 ELSEIF ( INDEX(initializing_actions, 'set_constant_profiles') /= 0 ) & 746 746 THEN 747 747 748 CALL location_message( 'initializing with constant profiles' )748 CALL location_message( 'initializing with constant profiles', .FALSE. ) 749 749 ! 750 750 !-- Overwrite initial profiles in case of nudging … … 855 855 IF ( sloping_surface ) CALL init_slope 856 856 857 CALL location_message( 'finished' )857 CALL location_message( 'finished', .TRUE. ) 858 858 859 859 ELSEIF ( INDEX(initializing_actions, 'by_user') /= 0 ) & 860 860 THEN 861 861 862 CALL location_message( 'initializing by user' )862 CALL location_message( 'initializing by user', .FALSE. ) 863 863 ! 864 864 !-- Initialization will completely be done by the user 865 865 CALL user_init_3d_model 866 866 867 CALL location_message( 'finished' ) 868 869 ENDIF 870 871 CALL location_message( 'initializing statistics, boundary conditions, etc.' ) 867 CALL location_message( 'finished', .TRUE. ) 868 869 ENDIF 870 871 CALL location_message( 'initializing statistics, boundary conditions, etc.', & 872 .FALSE. ) 872 873 873 874 ! … … 1158 1159 ENDIF 1159 1160 1160 CALL location_message( 'finished' )1161 CALL location_message( 'finished', .TRUE. ) 1161 1162 1162 1163 ELSEIF ( TRIM( initializing_actions ) == 'read_restart_data' .OR. & … … 1164 1165 THEN 1165 1166 1166 CALL location_message( 'initializing in case of restart / cyclic_fill' ) 1167 CALL location_message( 'initializing in case of restart / cyclic_fill', & 1168 .FALSE. ) 1167 1169 ! 1168 1170 !-- When reading data for cyclic fill of 3D prerun data files, read … … 1349 1351 IF ( ocean ) tsa_m = 0.0_wp 1350 1352 1351 CALL location_message( 'finished' )1353 CALL location_message( 'finished', .TRUE. ) 1352 1354 1353 1355 ELSE … … 1520 1522 TRIM( initializing_actions ) /= 'cyclic_fill' ) THEN 1521 1523 1522 CALL location_message( 'creating initial disturbances' )1524 CALL location_message( 'creating initial disturbances', .FALSE. ) 1523 1525 CALL disturb_field( nzb_u_inner, tend, u ) 1524 1526 CALL disturb_field( nzb_v_inner, tend, v ) 1525 CALL location_message( 'finished' )1526 1527 CALL location_message( 'calling pressure solver' )1527 CALL location_message( 'finished', .TRUE. ) 1528 1529 CALL location_message( 'calling pressure solver', .FALSE. ) 1528 1530 n_sor = nsor_ini 1529 1531 !$acc data copyin( d, ddzu, ddzw, nzb_s_inner, nzb_u_inner ) & … … 1534 1536 !$acc end data 1535 1537 n_sor = nsor 1536 CALL location_message( 'finished' )1538 CALL location_message( 'finished', .TRUE. ) 1537 1539 1538 1540 ENDIF … … 1908 1910 DEALLOCATE( ngp_2dh_l, ngp_2dh_outer_l, ngp_3d_inner_l, ngp_3d_inner_tmp ) 1909 1911 1910 CALL location_message( 'leaving init_3d_model' )1912 CALL location_message( 'leaving init_3d_model', .TRUE. ) 1911 1913 1912 1914 END SUBROUTINE init_3d_model -
palm/trunk/SOURCE/init_pegrid.f90
r1385 r1402 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! location messages modified 23 23 ! 24 24 ! Former revisions: … … 178 178 #if defined( __parallel ) 179 179 180 CALL location_message( 'creating virtual PE grids + MPI derived data types' ) 180 CALL location_message( 'creating virtual PE grids + MPI derived data types', & 181 .FALSE. ) 181 182 ! 182 183 !-- Determine the processor topology or check it, if prescribed by the user … … 1074 1075 comm1dx, ierr ) 1075 1076 1076 CALL location_message( 'finished' )1077 CALL location_message( 'finished', .TRUE. ) 1077 1078 1078 1079 #elif ! defined ( __parallel ) -
palm/trunk/SOURCE/message.f90
r1385 r1402 21 21 ! Current revisions: 22 22 ! ----------------- 23 ! 23 ! formatting of messages modified 24 24 ! 25 25 ! Former revisions: … … 83 83 pe_out_of_range = .FALSE. 84 84 85 ! print*, '#1'86 85 ! 87 86 !-- Create the complete output string, starting with the message level … … 97 96 ENDIF 98 97 99 ! print*, '#2'100 98 ! 101 99 !-- Add the message identifier and the generating routine … … 113 111 114 112 115 ! print*, '#3'116 113 ! 117 114 !-- Output the output string and the corresponding message string which had … … 124 121 do_output = .TRUE. 125 122 ENDIF 126 ! print*, '#4'127 123 #if defined( __parallel ) 128 124 ! … … 132 128 IF ( myid == 0 ) do_output = .TRUE. 133 129 ENDIF 134 ! print*, '#5'135 130 #endif 136 131 … … 138 133 !-- Now do the output 139 134 IF ( do_output ) THEN 140 ! print*, '#6' 135 141 136 IF ( file_id == 6 ) THEN 142 137 ! 143 138 !-- Output on stdout 144 139 WRITE( *, '(A/)' ) TRIM( header_string ) 145 ! print*, '#7'146 140 ! 147 141 !-- Cut message string into pieces and output one piece per line. … … 155 149 ENDDO 156 150 WRITE( *, '(4X,A)' ) TRIM( message_string ) 157 ! print*, '#8'158 151 WRITE( *, '(4X,A)' ) '' 159 152 WRITE( *, '(4X,A)' ) TRIM( information_string_1 ) … … 162 155 163 156 ELSE 164 ! print*, '#9'165 157 ! 166 158 !-- Output on requested file id (file must have been opened elsewhere!) … … 185 177 IF ( flush == 1 ) CALL local_flush( file_id ) 186 178 ENDIF 187 ! print*, '#10'188 179 189 180 IF ( pe_out_of_range ) THEN … … 195 186 WRITE ( *, '(A)' ) ' Output is done on PE0 instead' 196 187 ENDIF 197 ! print*, '#11'198 188 199 189 ENDIF … … 201 191 ! 202 192 !-- Abort execution, if requested 203 ! print*, '#12'204 193 IF ( requested_action > 0 ) THEN 205 194 abort_mode = requested_action 206 195 CALL local_stop 207 196 ENDIF 208 ! print*, '#13'209 197 210 198 END SUBROUTINE message 211 199 212 200 213 SUBROUTINE location_message( location )201 SUBROUTINE location_message( location, advance ) 214 202 215 203 !------------------------------------------------------------------------------! … … 219 207 !------------------------------------------------------------------------------! 220 208 209 USE, INTRINSIC :: ISO_FORTRAN_ENV, & 210 ONLY : OUTPUT_UNIT 211 221 212 USE pegrid, & 222 213 ONLY : myid … … 224 215 IMPLICIT NONE 225 216 226 CHARACTER(LEN=*) :: location 217 CHARACTER(LEN=*) :: location !: text to be output on stdout 218 LOGICAL :: advance !: switch for advancing/noadvancing I/O 227 219 228 220 229 221 IF ( myid == 0 ) THEN 230 WRITE ( 6, '(6X,''... '',A)' ) TRIM( location ) 231 CALL local_flush( 6 ) 222 IF ( advance ) THEN 223 WRITE ( OUTPUT_UNIT, '(6X,''--- '',A)' ) TRIM( location ) 224 ELSE 225 WRITE ( OUTPUT_UNIT, '(6X,''... '',A)', ADVANCE='NO' ) & 226 TRIM( location ) 227 ENDIF 228 CALL local_flush( OUTPUT_UNIT ) 232 229 ENDIF 233 230 -
palm/trunk/SOURCE/palm.f90
r1375 r1402 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! location messages added 23 23 ! 24 24 ! Former revisions: … … 285 285 CALL cpu_log( log_point(22), 'write_3d_binary', 'start' ) 286 286 287 CALL location_message( 'writing restart data', .FALSE. ) 288 287 289 CALL check_open( 14 ) 288 290 … … 297 299 #endif 298 300 ENDDO 301 302 CALL location_message( 'finished', .TRUE. ) 299 303 300 304 CALL cpu_log( log_point(22), 'write_3d_binary', 'stop' ) -
palm/trunk/SOURCE/parin.f90
r1385 r1402 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! location messages modified, batch_job included in envpar-NAMELIST 23 23 ! 24 24 ! Former revisions: … … 245 245 ONLY: cross_profiles, cross_ts_uymax, cross_ts_uymin, & 246 246 profile_columns, profile_rows 247 248 USE progress_bar, & 249 ONLY : batch_job 247 250 248 251 USE statistics, & … … 333 336 334 337 335 NAMELIST /envpar/ host, local_dvrserver_running, maximum_cpu_time_allowed,&336 maximum_ parallel_io_streams, revision, return_addres, &337 re turn_username, run_identifier, tasks_per_node, &338 write_binary338 NAMELIST /envpar/ batch_job, host, local_dvrserver_running, & 339 maximum_cpu_time_allowed, maximum_parallel_io_streams, & 340 revision, return_addres, return_username, & 341 run_identifier, tasks_per_node, write_binary 339 342 340 343 ! 341 344 !-- First read values of environment variables (this NAMELIST file is 342 345 !-- generated by mrun) 343 CALL location_message( 'reading environment parameters from ENVPAR' )346 CALL location_message( 'reading environment parameters from ENVPAR', .FALSE. ) 344 347 OPEN ( 90, FILE='ENVPAR', STATUS='OLD', FORM='FORMATTED', ERR=30 ) 345 348 READ ( 90, envpar, ERR=31, END=32 ) 346 349 CLOSE ( 90 ) 347 CALL location_message( 'finished' )350 CALL location_message( 'finished', .TRUE. ) 348 351 349 352 ! … … 368 371 io_group = MOD( myid+1, io_blocks ) 369 372 370 CALL location_message( 'reading NAMELIST parameters from PARIN' )373 CALL location_message( 'reading NAMELIST parameters from PARIN', .FALSE. ) 371 374 ! 372 375 !-- Data is read in parallel by groups of PEs … … 487 490 ENDDO 488 491 489 CALL location_message( 'finished' )492 CALL location_message( 'finished', .TRUE. ) 490 493 491 494 RETURN -
palm/trunk/SOURCE/time_integration.f90
r1385 r1402 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! location messages modified 23 23 ! 24 24 ! Former revisions: … … 205 205 ONLY: production_e_init 206 206 207 USE progress_bar, & 208 ONLY: finish_progress_bar, output_progress_bar 209 207 210 USE prognostic_equations_mod, & 208 211 ONLY: prognostic_equations_acc, prognostic_equations_cache, & … … 253 256 #endif 254 257 255 CALL location_message( ' beginning with time-stepping')258 CALL location_message( 'start with time-stepping', .TRUE. ) 256 259 ! 257 260 !-- Start of the time loop … … 944 947 CALL user_actions( 'after_timestep' ) 945 948 949 ! 950 !-- Output elapsed simulated time in form of a progress bar on stdout 951 IF ( myid == 0 ) CALL output_progress_bar 952 946 953 CALL cpu_log( log_point_s(10), 'timesteps', 'stop' ) 947 954 948 955 949 956 ENDDO ! time loop 957 958 IF ( myid == 0 ) CALL finish_progress_bar 950 959 951 960 #if defined( __dvrp_graphics ) … … 953 962 #endif 954 963 955 CALL location_message( 'finished time-stepping' )964 CALL location_message( 'finished time-stepping', .TRUE. ) 956 965 957 966 END SUBROUTINE time_integration
Note: See TracChangeset
for help on using the changeset viewer.