Changeset 354 for palm/trunk/SOURCE
- Timestamp:
- Jul 13, 2009 1:14:25 PM (16 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/CURRENT_MODIFICATIONS
r348 r354 40 40 (data_output_2d, user_data_output_2d) 41 41 42 check_for_restart, check_parameters, data_output_2d, data_output_3d, data_output_dvrp, data_output_profiles, data_output_ptseries, data_output_spectra, data_output_tseries, init_coupling, init_dvrp, init_grid, init_3d_model, header, modules, mrun, package_parin, parin, prognostic_equations, read_var_list, surface_coupler, timestep, time_integration, user_check_parameters, user_data_output_2d, user_data_output_dvrp, user_header, user_init_grid, write_var_list 42 xy cross section output of surface heatfluxes (latent, sensible) 43 (average_3d_data, check_parameters, data_output_2d, modules, read_3d_binary, 44 sum_up_3d_data, write_3d_binary) 45 46 47 average_3d_data, check_for_restart, check_parameters, data_output_2d, data_output_3d, data_output_dvrp, data_output_profiles, data_output_ptseries, data_output_spectra, data_output_tseries, init_coupling, init_dvrp, init_grid, init_3d_model, header, modules, mrun, package_parin, parin, prognostic_equations, read_3d_binary, read_var_list, surface_coupler, timestep, time_integration, user_check_parameters, user_data_output_2d, user_data_output_dvrp, user_header, user_init_grid, write_3d_binary, write_var_list 43 48 44 49 New: set_particle_attributes, set_slicer_attributes_dvrp -
palm/trunk/SOURCE/average_3d_data.f90
r98 r354 63 63 ENDDO 64 64 65 CASE ( 'qsws*' ) 66 DO i = nxl-1, nxr+1 67 DO j = nys-1, nyn+1 68 qsws_av(j,i) = qsws_av(j,i) / REAL( average_count_3d ) 69 ENDDO 70 ENDDO 71 65 72 CASE ( 'lwp*' ) 66 73 DO i = nxl-1, nxr+1 … … 168 175 ENDDO 169 176 ENDDO 170 177 171 178 CASE ( 'rho' ) 172 179 DO i = nxl-1, nxr+1 … … 193 200 sa_av(k,j,i) = sa_av(k,j,i) / REAL( average_count_3d ) 194 201 ENDDO 202 ENDDO 203 ENDDO 204 205 CASE ( 'shf*' ) 206 DO i = nxl-1, nxr+1 207 DO j = nys-1, nyn+1 208 shf_av(j,i) = shf_av(j,i) / REAL( average_count_3d ) 195 209 ENDDO 196 210 ENDDO -
palm/trunk/SOURCE/check_parameters.f90
r343 r354 2365 2365 unit = 'psu' 2366 2366 2367 CASE ( 'u*', 't*', 'lwp*', 'pra*', 'prr*', ' z0*' )2367 CASE ( 'u*', 't*', 'lwp*', 'pra*', 'prr*', 'qsws*', 'shf*', 'z0*' ) 2368 2368 IF ( k == 0 .OR. data_output(i)(ilen-2:ilen) /= '_xy' ) THEN 2369 2369 message_string = 'illegal value for data_output: "' // & … … 2392 2392 CALL message( 'check_parameters', 'PA0112', 1, 2, 0, 6, 0 ) 2393 2393 ENDIF 2394 2395 2396 IF ( TRIM( var ) == 'u*' ) unit = 'm/s' 2397 IF ( TRIM( var ) == 't*' ) unit = 'K' 2398 IF ( TRIM( var ) == 'lwp*' ) unit = 'kg/kg*m' 2399 IF ( TRIM( var ) == 'pra*' ) unit = 'mm' 2400 IF ( TRIM( var ) == 'prr*' ) unit = 'mm/s' 2401 IF ( TRIM( var ) == 'z0*' ) unit = 'm' 2394 IF ( TRIM( var ) == 'qsws*' .AND. .NOT. humidity ) THEN 2395 message_string = 'output of "' // TRIM( var ) // '" requi' // & 2396 'res humidity = .TRUE.' 2397 CALL message( 'check_parameters', 'PA0322', 1, 2, 0, 6, 0 ) 2398 ENDIF 2399 2400 IF ( TRIM( var ) == 'lwp*' ) unit = 'kg/kg*m' 2401 IF ( TRIM( var ) == 'pra*' ) unit = 'mm' 2402 IF ( TRIM( var ) == 'prr*' ) unit = 'mm/s' 2403 IF ( TRIM( var ) == 'qsws*' ) unit = 'kgm/kgs' 2404 IF ( TRIM( var ) == 'shf*' ) unit = 'K*m/s' 2405 IF ( TRIM( var ) == 't*' ) unit = 'K' 2406 IF ( TRIM( var ) == 'u*' ) unit = 'm/s' 2407 IF ( TRIM( var ) == 'z0*' ) unit = 'm' 2408 2402 2409 2403 2410 CASE ( 'p', 'pt', 'u', 'v', 'w' ) -
palm/trunk/SOURCE/data_output_2d.f90
r343 r354 375 375 IF ( mode == 'xy' ) level_z = zu 376 376 377 CASE ( 'qsws*_xy' ) ! 2d-array 378 IF ( av == 0 ) THEN 379 DO i = nxl-1, nxr+1 380 DO j = nys-1, nyn+1 381 local_pf(i,j,nzb+1) = qsws(j,i) 382 ENDDO 383 ENDDO 384 ELSE 385 DO i = nxl-1, nxr+1 386 DO j = nys-1, nyn+1 387 local_pf(i,j,nzb+1) = qsws_av(j,i) 388 ENDDO 389 ENDDO 390 ENDIF 391 resorted = .TRUE. 392 two_d = .TRUE. 393 level_z(nzb+1) = zu(nzb+1) 394 377 395 CASE ( 'qv_xy', 'qv_xz', 'qv_yz' ) 378 396 IF ( av == 0 ) THEN … … 410 428 to_be_resorted => sa_av 411 429 ENDIF 430 431 CASE ( 'shf*_xy' ) ! 2d-array 432 IF ( av == 0 ) THEN 433 DO i = nxl-1, nxr+1 434 DO j = nys-1, nyn+1 435 local_pf(i,j,nzb+1) = shf(j,i) 436 ENDDO 437 ENDDO 438 ELSE 439 DO i = nxl-1, nxr+1 440 DO j = nys-1, nyn+1 441 local_pf(i,j,nzb+1) = shf_av(j,i) 442 ENDDO 443 ENDDO 444 ENDIF 445 resorted = .TRUE. 446 two_d = .TRUE. 447 level_z(nzb+1) = zu(nzb+1) 412 448 413 449 CASE ( 't*_xy' ) ! 2d-array -
palm/trunk/SOURCE/modules.f90
r345 r354 193 193 !------------------------------------------------------------------------------! 194 194 195 REAL, DIMENSION(:,:), ALLOCATABLE :: lwp_av, precipitation_rate_av, &196 ts_av, us_av, z0_av195 REAL, DIMENSION(:,:), ALLOCATABLE :: lwp_av, precipitation_rate_av, & 196 qsws_av, shf_av,ts_av, us_av, z0_av 197 197 198 198 REAL, DIMENSION(:,:,:), ALLOCATABLE, TARGET :: & … … 312 312 CHARACTER (LEN=7), DIMENSION(100) :: do3d_comp_prec = ' ' 313 313 CHARACTER (LEN=10), DIMENSION(10) :: data_output_format = ' ' 314 CHARACTER (LEN=1 0), DIMENSION(100) :: data_output = ' ', &314 CHARACTER (LEN=11), DIMENSION(100) :: data_output = ' ', & 315 315 data_output_user = ' ', doav = ' ' 316 316 CHARACTER (LEN=10), DIMENSION(300) :: data_output_pr = ' ' -
palm/trunk/SOURCE/read_3d_binary.f90
r277 r354 521 521 tmp_2d(nysf-1:nynf+1,nxlf-1:nxrf+1) 522 522 523 CASE ( 'qsws_av' ) 524 IF ( .NOT. ALLOCATED( qsws_av ) ) THEN 525 ALLOCATE( qsws_av(nys-1:nyn+1,nxl-1:nxr+1) ) 526 ENDIF 527 IF ( k == 1 ) READ ( 13 ) tmp_2d 528 qsws_av(nysc-1:nync+1,nxlc-1:nxrc+1) = & 529 tmp_2d(nysf-1:nynf+1,nxlf-1:nxrf+1) 530 523 531 CASE ( 'qswst' ) 524 532 IF ( k == 1 ) READ ( 13 ) tmp_2d … … 610 618 shf_m(nysc-1:nync+1,nxlc-1:nxrc+1) = & 611 619 tmp_2d(nysf-1:nynf+1,nxlf-1:nxrf+1) 612 620 CASE ( 'shf_av' ) 621 IF ( .NOT. ALLOCATED( shf_av ) ) THEN 622 ALLOCATE( shf_av(nys-1:nyn+1,nxl-1:nxr+1) ) 623 ENDIF 624 IF ( k == 1 ) READ ( 13 ) tmp_2d 625 shf_av(nysc-1:nync+1,nxlc-1:nxrc+1) = & 626 tmp_2d(nysf-1:nynf+1,nxlf-1:nxrf+1) 613 627 CASE ( 'spectrum_x' ) 614 628 IF ( k == 1 ) THEN -
palm/trunk/SOURCE/sum_up_3d_data.f90
r98 r354 129 129 ql_vp_av = 0.0 130 130 131 CASE ( 'qsws*' ) 132 IF ( .NOT. ALLOCATED( qsws_av ) ) THEN 133 ALLOCATE( qsws_av(nys-1:nyn+1,nxl-1:nxr+1) ) 134 ENDIF 135 qsws_av = 0.0 136 131 137 CASE ( 'qv' ) 132 138 IF ( .NOT. ALLOCATED( qv_av ) ) THEN … … 152 158 ENDIF 153 159 sa_av = 0.0 160 161 CASE ( 'shf*' ) 162 IF ( .NOT. ALLOCATED( shf_av ) ) THEN 163 ALLOCATE( shf_av(nys-1:nyn+1,nxl-1:nxr+1) ) 164 ENDIF 165 shf_av = 0.0 154 166 155 167 CASE ( 't*' ) -
palm/trunk/SOURCE/write_3d_binary.f90
r198 r354 139 139 WRITE ( 14 ) 'qsws_m '; WRITE ( 14 ) qsws_m 140 140 ENDIF 141 IF ( ALLOCATED( qsws_av ) ) THEN 142 WRITE ( 14 ) 'qsws_av '; WRITE ( 14 ) qsws_av 143 ENDIF 141 144 WRITE ( 14 ) 'qswst '; WRITE ( 14 ) qswst 142 145 IF ( timestep_scheme(1:5) /= 'runge' ) THEN … … 182 185 IF ( timestep_scheme(1:5) /= 'runge' ) THEN 183 186 WRITE ( 14 ) 'shf_m '; WRITE ( 14 ) shf_m 187 ENDIF 188 IF ( ALLOCATED( shf_av ) ) THEN 189 WRITE ( 14 ) 'shf_av '; WRITE ( 14 ) shf_av 184 190 ENDIF 185 191 IF ( ALLOCATED( spectrum_x ) ) THEN
Note: See TracChangeset
for help on using the changeset viewer.