Changeset 11071 for NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/OCE/DYN/dynkeg.F90
- Timestamp:
- 2019-06-04T14:58:06+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/OCE/DYN/dynkeg.F90
r11067 r11071 80 80 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: ztrdu, ztrdv 81 81 REAL(wp) :: zweightu, zweightv 82 LOGICAL, DIMENSION(4) :: l send1,lrecv1 ! indicate how bdy communications are to be carried out82 LOGICAL, DIMENSION(4) :: llsend1, llrecv1 ! indicate how bdy communications are to be carried out 83 83 !!---------------------------------------------------------------------- 84 84 ! … … 136 136 END IF 137 137 END DO 138 ! send 2 and recv jpi, jpjused in the computation of the speed tendencies139 l send1(:) = .false.140 l recv1(:) = .false.138 ! send jpi-1, jpj-1 and receive 1 used in the computation of the speed tendencies 139 llsend1(:) = .false. 140 llrecv1(:) = .false. 141 141 DO ib_bdy = 1, nb_bdy 142 lsend1(:) = lsend1(:) .OR. lsend_bdy(ib_bdy,1,:) ! to every bdy neighbour, T points 143 lrecv1(:) = lrecv1(:) .OR. lrecv_bdy(ib_bdy,1,:) ! from every bdy neighbour, T points 144 END DO 145 IF( COUNT(lsend1) > 0 .OR. COUNT(lrecv1) > 0 ) THEN ! if need to send/recv in at least one direction 146 CALL lbc_bdy_lnk( 'bdydyn2d', lsend1, lrecv1, zhke, 'T', 1. ) 142 llsend1(2) = llsend1(2) .OR. lsend_bdy(ib_bdy,igrd,2) ! send east 143 llsend1(4) = llsend1(4) .OR. lsend_bdy(ib_bdy,igrd,4) ! send north 144 llrecv1(1) = llrecv1(1) .OR. lrecv_bdy(ib_bdy,igrd,1) ! receive west 145 llrecv1(3) = llrecv1(3) .OR. lrecv_bdy(ib_bdy,igrd,3) ! receive south 146 END DO 147 148 IF( ANY(llsend1) .OR. ANY(llrecv1) ) THEN ! if need to send/recv in at least one direction 149 CALL lbc_bdy_lnk( 'bdydyn2d', llsend1, llrecv1, zhke, 'T', 1. ) 147 150 END IF 148 151 END IF
Note: See TracChangeset
for help on using the changeset viewer.