Changeset 163 for palm/trunk/SOURCE/inflow_turbulence.f90
- Timestamp:
- May 5, 2008 2:09:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/inflow_turbulence.f90
r151 r163 91 91 i = recycling_plane 92 92 93 IF ( i >= nxl .AND. i <= nxr) THEN93 IF ( myidx == id_recycling ) THEN 94 94 95 95 DO j = nys-1, nyn+1 … … 110 110 !-- For parallel runs, send the disturbances to the respective inflow PE 111 111 #if defined( __parallel ) 112 IF ( i >= nxl .AND. i <= nxr .AND. myid/= id_inflow ) THEN112 IF ( myidx == id_recycling .AND. myidx /= id_inflow ) THEN 113 113 114 ! print*, '*** sending id = ', myid, ' send to:', id_inflow115 114 CALL MPI_SEND( inflow_dist(nzb,nys-1,1), ngp_ifd, MPI_REAL, & 116 115 id_inflow, 1, comm1dx, ierr ) 117 116 118 ELSEIF ( ( i < nxl .OR. i > nxr ) .AND. myid== id_inflow ) THEN117 ELSEIF ( myidx /= id_recycling .AND. myidx == id_inflow ) THEN 119 118 120 ! print*, '*** receiving id = ', myid 119 inflow_dist = 0.0 121 120 CALL MPI_RECV( inflow_dist(nzb,nys-1,1), ngp_ifd, MPI_REAL, & 122 MPI_ANY_SOURCE, 1, comm1dx, status, ierr )121 id_recycling, 1, comm1dx, status, ierr ) 123 122 124 123 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.