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 14674 for utils/tools/DOMAINcfg/src/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2021-04-06T14:36:08+02:00 (3 years ago)
Author:
ldebreu
Message:

AGFdomcfg: corrections for east-west cyclic grids, #2368

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/tools/DOMAINcfg/src/agrif_user.F90

    r14640 r14674  
    215215      !--------------------------------------------------------------------- 
    216216 
    217       ind2 = nn_hls + 2 + nbghostcells_x 
    218       ind3 = nn_hls + 2 + nbghostcells_y_s 
     217      ind2 = nn_hls + 1 + nbghostcells_x 
     218      ind3 = nn_hls + 1 + nbghostcells_y_s 
    219219 
    220220      nbghostcellsfine_tot_x=nbghostcells_x+1 
     
    11151115      IF (.not.agrif_root()) THEN 
    11161116      lk_west  = .NOT. ( Agrif_Ix() == 1 ) 
    1117       lk_east  = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo) -1 ) 
     1117      lk_east  = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo) + 1 ) 
    11181118      lk_south = .NOT. ( Agrif_Iy() == 1 ) 
    1119       lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo) -1 ) 
     1119      lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo) + 1) 
    11201120         IF (.NOT.lk_south) THEN 
    11211121            nbghostcells_y_s = 0 
Note: See TracChangeset for help on using the changeset viewer.