Changeset 2007 for palm/trunk/SOURCE/data_output_3d.f90
- Timestamp:
- Aug 24, 2016 3:47:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/data_output_3d.f90
r2001 r2007 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Added support for new urban surface model (temporary modifications of 23 ! SELECT CASE ( ) necessary, see variable trimvar) 23 24 ! 24 25 ! Former revisions: … … 178 179 ONLY: radiation, radiation_data_output_3d 179 180 181 USE urban_surface_mod, & 182 ONLY: nzub, nzut, urban_surface, usm_data_output_3d 183 180 184 181 185 IMPLICIT NONE … … 200 204 201 205 REAL(wp), DIMENSION(:,:,:), POINTER :: to_be_resorted !< 206 207 CHARACTER (LEN=20) :: trimvar !< TRIM of output-variable string 202 208 203 209 ! … … 260 266 261 267 DO WHILE ( do3d(av,if)(1:1) /= ' ' ) 262 ! 268 269 ! 270 !-- Temporary solution to account for data output within the new urban 271 !-- surface model (urban_surface_mod.f90), see also SELECT CASE ( trimvar ). 263 272 !-- Store the array chosen on the temporary array. 264 resorted = .FALSE. 265 nzb_do = nzb 266 nzt_do = nz_do3d 273 trimvar = TRIM( do3d(av,if) ) 274 IF ( urban_surface .AND. trimvar(1:3) == 'us_' ) THEN 275 trimvar = 'usm_output' 276 resorted = .TRUE. 277 nzb_do = nzub 278 nzt_do = nzut 279 ELSE 280 resorted = .FALSE. 281 nzb_do = nzb 282 nzt_do = nz_do3d 283 ENDIF 267 284 ! 268 285 !-- Set flag to steer output of radiation, land-surface, or user-defined … … 273 290 ALLOCATE( local_pf(nxlg:nxrg,nysg:nyng,nzb_do:nzt_do) ) 274 291 275 SELECT CASE ( TRIM( do3d(av,if) ))292 SELECT CASE ( trimvar ) 276 293 277 294 CASE ( 'e' ) … … 553 570 to_be_resorted => w_av 554 571 ENDIF 572 ! 573 !-- Block of urban surface model outputs 574 CASE ( 'usm_output' ) 575 CALL usm_data_output_3d( av, do3d(av,if), found, local_pf, & 576 nzb_do, nzt_do ) 555 577 556 578 CASE DEFAULT
Note: See TracChangeset
for help on using the changeset viewer.