Changeset 15043 for NEMO/branches/2021/ticket2696_icb_halo1_halo2_compatibility/src/OCE/ICB/icblbc.F90
- Timestamp:
- 2021-06-22T13:26:16+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2021/ticket2696_icb_halo1_halo2_compatibility/src/OCE/ICB/icblbc.F90
r14433 r15043 229 229 DO WHILE (ASSOCIATED(this)) 230 230 pt => this%current_point 231 IF( ipe_E >= 0 .AND. pt%xi > REAL(mig(nicbei),wp) + 0.5_wp ) THEN231 IF( ipe_E >= 0 .AND. pt%xi > REAL(mig(nicbei),wp) + 0.5_wp - (nn_hls-1) ) THEN 232 232 tmpberg => this 233 233 this => this%next … … 242 242 CALL icb_pack_into_buffer( tmpberg, obuffer_e, ibergs_to_send_e) 243 243 CALL icb_utl_delete(first_berg, tmpberg) 244 ELSE IF( ipe_W >= 0 .AND. pt%xi < REAL(mig(nicbdi),wp) - 0.5_wp ) THEN244 ELSE IF( ipe_W >= 0 .AND. pt%xi < REAL(mig(nicbdi),wp) - 0.5_wp - (nn_hls-1) ) THEN 245 245 tmpberg => this 246 246 this => this%next … … 321 321 DO WHILE (ASSOCIATED(this)) 322 322 pt => this%current_point 323 IF( ipe_N >= 0 .AND. pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp ) THEN323 IF( ipe_N >= 0 .AND. pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp - (nn_hls-1) ) THEN 324 324 tmpberg => this 325 325 this => this%next … … 331 331 CALL icb_pack_into_buffer( tmpberg, obuffer_n, ibergs_to_send_n) 332 332 CALL icb_utl_delete(first_berg, tmpberg) 333 ELSE IF( ipe_S >= 0 .AND. pt%yj < REAL(mjg(nicbdj),wp) - 0.5_wp ) THEN333 ELSE IF( ipe_S >= 0 .AND. pt%yj < REAL(mjg(nicbdj),wp) - 0.5_wp - (nn_hls-1) ) THEN 334 334 tmpberg => this 335 335 this => this%next … … 442 442 DO WHILE (ASSOCIATED(this)) 443 443 pt => this%current_point 444 IF( pt%xi < REAL(mig(nicbdi),wp) - 0.5_wp .OR. &445 pt%xi > REAL(mig(nicbei),wp) + 0.5_wp .OR. &446 pt%yj < REAL(mjg(nicbdj),wp) - 0.5_wp .OR. &447 pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp ) THEN444 IF( pt%xi < REAL(mig(nicbdi),wp) - 0.5_wp - (nn_hls-1) .OR. & 445 pt%xi > REAL(mig(nicbei),wp) + 0.5_wp - (nn_hls-1) .OR. & 446 pt%yj < REAL(mjg(nicbdj),wp) - 0.5_wp - (nn_hls-1) .OR. & 447 pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp - (nn_hls-1) ) THEN 448 448 i = i + 1 449 449 WRITE(numicb,*) 'berg lost in halo: ', this%number(:) … … 514 514 DO WHILE (ASSOCIATED(this)) 515 515 pt => this%current_point 516 iine = INT( pt%xi + 0.5 ) 516 iine = INT( pt%xi + 0.5 ) + (nn_hls-1) 517 517 iproc = nicbflddest(mi1(iine)) 518 IF( pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp ) THEN518 IF( pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp - (nn_hls-1) ) THEN 519 519 IF( iproc == ifldproc ) THEN 520 520 ! … … 592 592 DO WHILE (ASSOCIATED(this)) 593 593 pt => this%current_point 594 iine = INT( pt%xi + 0.5 ) 595 ijne = INT( pt%yj + 0.5 ) 594 iine = INT( pt%xi + 0.5 ) + (nn_hls-1) 595 ijne = INT( pt%yj + 0.5 ) + (nn_hls-1) 596 596 ipts = nicbfldpts (mi1(iine)) 597 597 iproc = nicbflddest(mi1(iine)) 598 IF( pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp ) THEN598 IF( pt%yj > REAL(mjg(nicbej),wp) + 0.5_wp - (nn_hls-1) ) THEN 599 599 IF( iproc == ifldproc ) THEN 600 600 !
Note: See TracChangeset
for help on using the changeset viewer.