Changeset 163 for palm/trunk/SOURCE/init_pegrid.f90
- Timestamp:
- May 5, 2008 2:09:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_pegrid.f90
r151 r163 48 48 USE control_parameters 49 49 USE fft_xy 50 USE grid_variables 50 51 USE indices 51 52 USE pegrid … … 58 59 IMPLICIT NONE 59 60 60 INTEGER :: gathered_size, i, id_inflow_l, i nd(5), j, k,&61 INTEGER :: gathered_size, i, id_inflow_l, id_recycling_l, ind(5), j, k, & 61 62 maximum_grid_level_l, mg_switch_to_pe0_level_l, mg_levels_x, & 62 63 mg_levels_y, mg_levels_z, nnx_y, nnx_z, nny_x, nny_z, nnz_x, & … … 922 923 !-- Broadcast the id of the inflow PE 923 924 IF ( inflow_l ) THEN 924 id_inflow_l = myid 925 id_inflow_l = myidx 925 926 ELSE 926 927 id_inflow_l = 0 927 928 ENDIF 928 929 CALL MPI_ALLREDUCE( id_inflow_l, id_inflow, 1, MPI_INTEGER, MPI_SUM, & 930 comm1dx, ierr ) 931 932 ! 933 !-- Broadcast the id of the recycling plane 934 !-- WARNING: needs to be adjusted in case of inflows other than from left side! 935 IF ( ( recycling_width / dx ) >= nxl .AND. ( recycling_width / dx ) <= nxr ) & 936 THEN 937 id_recycling_l = myidx 938 ELSE 939 id_recycling_l = 0 940 ENDIF 941 CALL MPI_ALLREDUCE( id_recycling_l, id_recycling, 1, MPI_INTEGER, MPI_SUM, & 929 942 comm1dx, ierr ) 930 943
Note: See TracChangeset
for help on using the changeset viewer.