Changeset 1003 for palm/trunk/SOURCE/calc_spectra.f90
- Timestamp:
- Sep 14, 2012 2:35:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/calc_spectra.f90
r708 r1003 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! 6 ! adjustment of array tend for cases with unequal subdomain sizes removed 7 7 ! 8 8 ! Former revisions: … … 73 73 IF ( psolver == 'multigrid' ) THEN 74 74 DEALLOCATE( d ) 75 ALLOCATE( d(nzb+1:nzta,nys:nyna,nxl:nxra) ) 76 ENDIF 77 78 ! 79 !-- Enlarge the size of tend, used as a working array for the transpositions 80 IF ( nxra > nxr .OR. nyna > nyn .OR. nza > nz ) THEN 81 DEALLOCATE( tend ) 82 ALLOCATE( tend(1:nza,nys:nyna,nxl:nxra) ) 75 ALLOCATE( d(nzb+1:nzt,nys:nyn,nxl:nxr) ) 83 76 ENDIF 84 77 … … 154 147 !-- Increase counter for averaging process in routine plot_spectra 155 148 average_count_sp = average_count_sp + 1 156 157 !158 !-- Resize tend to its normal size159 IF ( nxra > nxr .OR. nyna > nyn .OR. nza > nz ) THEN160 DEALLOCATE( tend )161 ALLOCATE( tend(nzb:nzt+1,nysg:nyng,nxlg:nxrg) )162 ENDIF163 149 164 150 CALL cpu_log( log_point(30), 'calc_spectra', 'stop' ) … … 249 235 REAL, DIMENSION(0:nx/2,100):: sums_spectra 250 236 251 REAL, DIMENSION(0:nx a,nys_x:nyn_xa,nzb_x:nzt_xa) :: ddd237 REAL, DIMENSION(0:nx,nys_x:nyn_x,nzb_x:nzt_x) :: ddd 252 238 253 239 ! … … 359 345 REAL, DIMENSION(0:ny/2,100):: sums_spectra 360 346 361 REAL, DIMENSION(0:ny a,nxl_yd:nxr_yda,nzb_yd:nzt_yda) :: ddd347 REAL, DIMENSION(0:ny,nxl_yd:nxr_yd,nzb_yd:nzt_yd) :: ddd 362 348 363 349
Note: See TracChangeset
for help on using the changeset viewer.