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 13673 for NEMO/branches – NEMO

Changeset 13673 for NEMO/branches


Ignore:
Timestamp:
2020-10-26T08:51:22+01:00 (4 years ago)
Author:
jchanut
Message:

#2129, Correct use of Niglo0/Njglo0 in place of jpiglo/jpjglo.
Accomodate with 2DV domains with vertical North/South? walls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13312_AGRIF-03-04_jchanut_vinterp_tstep/src/NST/agrif_user.F90

    r13565 r13673  
    6969      IF ( .NOT. lk_south ) THEN 
    7070         CALL Agrif_Set_NearCommonBorderY(.TRUE.) 
     71      ENDIF 
     72 
     73      IF ( .NOT. lk_north ) THEN 
     74         CALL Agrif_Set_DistantCommonBorderY(.TRUE.) 
    7175      ENDIF 
    7276 
     
    799803! JC => side effects of lines below to be checked: 
    800804      lk_west  = .NOT. ( Agrif_Ix() == 1 ) 
    801       lk_east  = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(jpiglo) -1 ) 
     805      lk_east  = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo) -1 ) 
    802806      lk_south = .NOT. ( Agrif_Iy() == 1 ) 
    803       lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(jpjglo) -1 ) 
     807      lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo) -1 ) 
    804808      ! 
    805809      ! Set the number of ghost cells according to periodicity 
     
    810814      IF(   jperio == 1  )   nbghostcells_x   = 0 
    811815      IF( .NOT. lk_south )   nbghostcells_y_s = 0 
    812       ! For 2DV domains: 
    813       IF (( nbcellsy <= 3 ).AND.(AGRIF_Irhoy()==1)) THEN 
    814          lk_north  = .FALSE. ; lk_south = .FALSE. 
    815          nbghostcells_y_s = nbghostcells 
    816       ENDIF 
    817       IF (( nbcellsx <= 3 ).AND.(AGRIF_Irhox()==1)) THEN 
    818          lk_east  = .FALSE. ; lk_north = .FALSE. 
    819       ENDIF 
     816      IF( .NOT. lk_north )   nbghostcells_y_n = 0 
     817      ! 
    820818      ! Some checks 
    821819      IF( jpiglo /= nbcellsx + 2 + 2*nn_hls + nbghostcells_x   + nbghostcells_x   )   CALL ctl_stop( 'STOP',    & 
Note: See TracChangeset for help on using the changeset viewer.