Changeset 622 for palm/trunk/SOURCE/flow_statistics.f90
- Timestamp:
- Dec 10, 2010 8:08:13 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/flow_statistics.f90
r550 r622 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! 6 ! optional barriers included in order to speed up collective operations 7 7 ! 8 8 ! Former revisions: … … 237 237 ! 238 238 !-- Compute total sum from local sums 239 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 239 240 CALL MPI_ALLREDUCE( sums_l(nzb,1,0), sums(nzb,1), nzt+2-nzb, MPI_REAL, & 240 241 MPI_SUM, comm2d, ierr ) 242 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 241 243 CALL MPI_ALLREDUCE( sums_l(nzb,2,0), sums(nzb,2), nzt+2-nzb, MPI_REAL, & 242 244 MPI_SUM, comm2d, ierr ) 245 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 243 246 CALL MPI_ALLREDUCE( sums_l(nzb,4,0), sums(nzb,4), nzt+2-nzb, MPI_REAL, & 244 247 MPI_SUM, comm2d, ierr ) 245 248 IF ( ocean ) THEN 249 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 246 250 CALL MPI_ALLREDUCE( sums_l(nzb,23,0), sums(nzb,23), nzt+2-nzb, & 247 251 MPI_REAL, MPI_SUM, comm2d, ierr ) 248 252 ENDIF 249 253 IF ( humidity ) THEN 254 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 250 255 CALL MPI_ALLREDUCE( sums_l(nzb,44,0), sums(nzb,44), nzt+2-nzb, & 251 256 MPI_REAL, MPI_SUM, comm2d, ierr ) 257 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 252 258 CALL MPI_ALLREDUCE( sums_l(nzb,41,0), sums(nzb,41), nzt+2-nzb, & 253 259 MPI_REAL, MPI_SUM, comm2d, ierr ) 254 260 IF ( cloud_physics ) THEN 261 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 255 262 CALL MPI_ALLREDUCE( sums_l(nzb,42,0), sums(nzb,42), nzt+2-nzb, & 256 263 MPI_REAL, MPI_SUM, comm2d, ierr ) 264 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 257 265 CALL MPI_ALLREDUCE( sums_l(nzb,43,0), sums(nzb,43), nzt+2-nzb, & 258 266 MPI_REAL, MPI_SUM, comm2d, ierr ) … … 261 269 262 270 IF ( passive_scalar ) THEN 271 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 263 272 CALL MPI_ALLREDUCE( sums_l(nzb,41,0), sums(nzb,41), nzt+2-nzb, & 264 273 MPI_REAL, MPI_SUM, comm2d, ierr ) … … 796 805 ! 797 806 !-- Compute total sum from local sums 807 IF ( collective_wait ) CALL MPI_BARRIER( comm2d, ierr ) 798 808 CALL MPI_ALLREDUCE( sums_l(nzb,1,0), sums(nzb,1), ngp_sums, MPI_REAL, & 799 809 MPI_SUM, comm2d, ierr )
Note: See TracChangeset
for help on using the changeset viewer.