Changeset 493 for palm/trunk/SOURCE/user_statistics.f90
- Timestamp:
- Mar 1, 2010 8:30:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/user_statistics.f90
r484 r493 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! 6 ! Bugfix: timeseries data have to be collected by PE0 7 7 ! 8 8 ! Former revisions: … … 25 25 USE arrays_3d 26 26 USE indices 27 USE netcdf_control 27 28 USE statistics 28 29 USE user … … 33 34 34 35 INTEGER :: i, j, k, sr, tn 36 37 REAL, DIMENSION(dots_num_palm+1:dots_max) :: ts_value_l 35 38 36 39 … … 70 73 !-- creates two time series for the absolut values of the horizontal 71 74 !-- velocities u and v. 72 ! ts_value(dots_num_palm+1,sr) = ABS( u_max ) 73 ! ts_value(dots_num_palm+2,sr) = ABS( v_max ) 75 ! ts_value_l = 0.0 76 ! ts_value_l(dots_num_palm+1,sr) = ABS( u_max ) 77 ! ts_value_l(dots_num_palm+2,sr) = ABS( v_max ) 78 ! 79 !-- Collect / send values to PE0, because only PE0 outputs the time series. 80 !-- CAUTION: Collection is done by taking the sum over all processors. 81 !-- You may have to normalize this sum, depending on the quantity 82 !-- that you like to calculate. For serial runs, nothing has to be 83 !-- done. 84 !-- HINT: If the time series value that you are calculating has the same 85 !-- value on all PEs, you can omit the MPI_ALLREDUCE call and 86 !-- assign ts_value(dots_num_palm+1:,sr) = ts_value_l directly. 87 !#if defined( __parallel ) 88 ! CALL MPI_ALLREDUCE( ts_value_l(dots_num_palm+1), & 89 ! ts_value(dots_num_palm+1,sr), & 90 ! dots_max-dots_num_palm, MPI_REAL, MPI_SUM, comm2d, & 91 ! ierr ) 92 !#else 93 ! ts_value(dots_num_palm+1:,sr) = ts_value_l 94 !#endif 74 95 75 96 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.