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_bdy_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_bdy_generic.h90

    r9019 r9667  
    7676         IF( nbondi == 2) THEN                  ! neither subdomain to the east nor to the west 
    7777            !                                      !* Cyclic 
    78             IF( nperio == 1 .OR. nperio == 4 .OR. nperio == 6 ) THEN 
     78            IF( l_Iperio ) THEN 
    7979               ARRAY_IN( 1 ,:,:,:,jf) = ARRAY_IN(jpim1,:,:,:,jf) 
    8080               ARRAY_IN(jpi,:,:,:,jf) = ARRAY_IN(  2  ,:,:,:,jf) 
     
    9191         !                                ! North-South boundaries 
    9292         ! 
    93          IF (nbondj == 2 .OR. nbondj == -1) THEN      !* closed 
    94            IF( .NOT. NAT_IN(jf) == 'F' )   ARRAY_IN(:,1:nn_hls,:,:,jf) = zland            ! south except F-point 
    95          ELSEIF (nbondj == 2 .OR. nbondj == 1) THEN 
    96                                            ARRAY_IN(:,nlcj-nn_hls+1:jpj,:,:,jf) = zland   ! north 
     93         IF( nbondj == 2) THEN                  ! neither subdomain to the north nor to the south 
     94            !                                      !* Cyclic 
     95            IF( l_Jperio ) THEN 
     96               ARRAY_IN(:, 1 ,:,:,jf) = ARRAY_IN(:,jpjm1,:,:,jf) 
     97               ARRAY_IN(:,jpj,:,:,jf) = ARRAY_IN(:,  2  ,:,:,jf) 
     98            ELSE                                   !* Closed 
     99               IF( .NOT. NAT_IN(jf) == 'F' )   ARRAY_IN(:,     1       :nn_hls,:,:,jf) = zland  ! east except F-point 
     100                                               ARRAY_IN(:,nlcj-nn_hls+1:jpj   ,:,:,jf) = zland  ! west 
     101            ENDIF 
     102         ELSEIF(nbondi == -1) THEN              ! subdomain to the east only 
     103            IF( .NOT. NAT_IN(jf) == 'F' )   ARRAY_IN(:,1:nn_hls,:,:,jf) = zland     ! south except F-point 
     104            ! 
     105         ELSEIF(nbondi == 1) THEN               ! subdomain to the west only 
     106            ARRAY_IN(:,nlcj-nn_hls+1:jpj,:,:,jf) = zland    ! north 
    97107         ENDIF 
     108         ! 
    98109      END DO 
    99110 
Note: See TracChangeset for help on using the changeset viewer.