New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 9667 for NEMO/trunk/src/OCE/LBC/mpp_lnk_generic.h90 – NEMO

Ignore:
Timestamp:
2018-05-28T17:47:05+02:00 (6 years ago)
Author:
smasson
Message:

trunk: cyclic north-south periodicity and nperio cleaning, see #2093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/LBC/mpp_lnk_generic.h90

    r9019 r9667  
    6262      INTEGER  ::   ml_req1, ml_req2, ml_err     ! for key_mpi_isend 
    6363      REAL(wp) ::   zland 
    64       LOGICAL  ::   ll_Iperio, ll_Jperio 
    6564      INTEGER , DIMENSION(MPI_STATUS_SIZE)      ::   ml_stat        ! for key_mpi_isend 
    6665      REAL(wp), DIMENSION(:,:,:,:,:,:), ALLOCATABLE ::   zt3ns, zt3sn   ! north-south & south-north  halos 
     
    7574         &      zt3ew(jpj,nn_hls,ipk,ipl,ipf,2), zt3we(jpj,nn_hls,ipk,ipl,ipf,2)  ) 
    7675      ! 
    77       ll_Iperio = nbondi == 2 .AND. (nperio == 1 .OR. nperio == 4 .OR. nperio == 6) 
    78       ll_Jperio = nbondj == 2 .AND.  jperio == 7 
    79       ! 
    8076      IF( PRESENT( pval ) ) THEN   ;   zland = pval      ! set land value 
    8177      ELSE                         ;   zland = 0._wp     ! zero by default 
     
    111107         DO jf = 1, ipf                      ! number of arrays to be treated 
    112108            ! 
    113             !                             ! East-West boundaries 
    114             IF( ll_Iperio ) THEN                   !* cyclic 
     109            !                                ! East-West boundaries 
     110            IF( l_Iperio ) THEN                    !* cyclic 
    115111               ARRAY_IN( 1 ,:,:,:,jf) = ARRAY_IN(jpim1,:,:,:,jf) 
    116112               ARRAY_IN(jpi,:,:,:,jf) = ARRAY_IN(  2  ,:,:,:,jf) 
     
    120116            ENDIF 
    121117            !                                ! North-South boundaries 
    122             IF( ll_Jperio ) THEN                   !* cyclic (only with no mpp j-split) 
     118            IF( l_Jperio ) THEN                    !* cyclic (only with no mpp j-split) 
    123119               ARRAY_IN(:, 1 ,:,:,jf) = ARRAY_IN(:, jpjm1,:,:,jf) 
    124120               ARRAY_IN(:,jpj,:,:,jf) = ARRAY_IN(:,   2  ,:,:,jf) 
Note: See TracChangeset for help on using the changeset viewer.