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 14951 for NEMO/branches/2021/dev_r14608_AGRIF_domcfg/tests/VORTEX/MY_SRC/usrdef_nam.F90 – NEMO

Ignore:
Timestamp:
2021-06-04T17:35:08+02:00 (3 years ago)
Author:
jchanut
Message:

#2638, change grid positioning convention (again) in case of closed boundaries over parent grid. Accounting for 1 extra land cell in that case, child grids have to be shifted by 1 point to the South East.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14608_AGRIF_domcfg/tests/VORTEX/MY_SRC/usrdef_nam.F90

    r14688 r14951  
    9797         ighost_n = nbghostcells 
    9898 
    99          IF  ( Agrif_Ix() == 1 ) ighost_w = 0  
    100          IF  ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo)+1 ) ighost_e = 0  
    101          IF  ( Agrif_Iy() == 1 ) ighost_s = 0  
    102          IF  ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo)+1 ) ighost_n = 0  
     99         IF  ( Agrif_Ix() == 1 ) ighost_w = 1  
     100         IF  ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo) - 1 ) ighost_e = 1  
     101         IF  ( Agrif_Iy() == 1 ) ighost_s = 1  
     102         IF  ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo) - 1 ) ighost_n = 1  
    103103!         kpi  = nbcellsx + 2 * ( nbghostcells + 1 ) 
    104104!         kpj  = nbcellsy + 2 * ( nbghostcells + 1 ) 
Note: See TracChangeset for help on using the changeset viewer.