- Timestamp:
- 2012-04-30T13:24:25+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icblbc.F90
r3372 r3374 93 93 pt => this%current_point 94 94 iine = INT( pt%xi + 0.5 ) 95 IF( iine > nimpp+nicbei-1) THEN95 IF( iine > mig(nicbei) ) THEN 96 96 pt%xi = ricb_right + MOD(pt%xi, 1._wp ) - 1._wp 97 ELSE IF( iine < nimpp+nicbdi-1) THEN97 ELSE IF( iine < mig(nicbdi) ) THEN 98 98 pt%xi = ricb_left + MOD(pt%xi, 1._wp ) 99 99 ENDIF … … 129 129 pt => this%current_point 130 130 ijne = INT( pt%yj + 0.5 ) 131 IF( ijne .GT. njmpp+nicbej-1) THEN131 IF( ijne .GT. mjg(nicbej) ) THEN 132 132 ! 133 133 iine = INT( pt%xi + 0.5 ) 134 ipts = nicbfldpts ( iine-nimpp+1)134 ipts = nicbfldpts (mi1(iine)) 135 135 ! 136 136 ! moving across the cut line means both position and … … 236 236 pt => this%current_point 237 237 iine = INT( pt%xi + 0.5 ) 238 IF( ipe_E >= 0 .AND. iine > nimpp+nicbei-1) THEN238 IF( ipe_E >= 0 .AND. iine > mig(nicbei) ) THEN 239 239 tmpberg => this 240 240 this => this%next … … 249 249 CALL icb_pack_into_buffer( tmpberg, obuffer_e, ibergs_to_send_e) 250 250 CALL icb_utl_delete(first_berg, tmpberg) 251 ELSE IF( ipe_W >= 0 .AND. iine < nimpp+nicbdi-1) THEN251 ELSE IF( ipe_W >= 0 .AND. iine < mig(nicbdi) ) THEN 252 252 tmpberg => this 253 253 this => this%next … … 374 374 pt => this%current_point 375 375 ijne = INT( pt%yj + 0.5 ) 376 IF( ipe_N >= 0 .AND. ijne .GT. njmpp+nicbej-1) THEN376 IF( ipe_N >= 0 .AND. ijne .GT. mjg(nicbej) ) THEN 377 377 tmpberg => this 378 378 this => this%next … … 384 384 CALL icb_pack_into_buffer( tmpberg, obuffer_n, ibergs_to_send_n) 385 385 CALL icb_utl_delete(first_berg, tmpberg) 386 ELSE IF( ipe_S >= 0 .AND. ijne .LT. njmpp+nicbdj-1) THEN386 ELSE IF( ipe_S >= 0 .AND. ijne .LT. mjg(nicbdj) ) THEN 387 387 tmpberg => this 388 388 this => this%next … … 542 542 iine = INT( pt%xi + 0.5 ) 543 543 ijne = INT( pt%yj + 0.5 ) 544 ! CALL check_position(grd, this, 'exchange (bot)') 545 IF( iine .LT. nimpp+nicbdi-1 .OR. & 546 iine .GT. nimpp+nicbei-1 .OR. & 547 ijne .LT. njmpp+nicbdj-1 .OR. & 548 ijne .GT. njmpp+nicbej-1) THEN 544 IF( iine .LT. mig(nicbdi) .OR. & 545 iine .GT. mig(nicbei) .OR. & 546 ijne .LT. mjg(nicbdj) .OR. & 547 ijne .GT. mjg(nicbej)) THEN 549 548 i = i + 1 550 549 WRITE(numicb,*) 'berg lost in halo: ', this%number(:),iine,ijne … … 607 606 iine = INT( pt%xi + 0.5 ) 608 607 ijne = INT( pt%yj + 0.5 ) 609 ipts = nicbfldpts ( iine-nimpp+1)610 iproc = nicbflddest( iine-nimpp+1)611 IF( ijne .GT. njmpp+nicbej-1) THEN608 ipts = nicbfldpts (mi1(iine)) 609 iproc = nicbflddest(mi1(iine)) 610 IF( ijne .GT. mjg(nicbej) ) THEN 612 611 IF( iproc == ifldproc ) THEN 613 612 !
Note: See TracChangeset
for help on using the changeset viewer.