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 15265 for NEMO/trunk/tests/DOME/MY_SRC/usrdef_nam.F90 – NEMO

Ignore:
Timestamp:
2021-09-16T13:13:13+02:00 (3 years ago)
Author:
jchanut
Message:

Improve ghost cell initialization with AGRIF + minor changes such as missing _wp, tests namelists updates, etc... can be assigned to #2638

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/tests/DOME/MY_SRC/usrdef_nam.F90

    r15119 r15265  
    9696         ighost_s = nbghostcells 
    9797         ighost_n = nbghostcells 
    98  
    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  
     98         ! In case one sets zoom boundaries over domain edges:  
     99         IF  ( Agrif_Ix() == 2 - Agrif_Parent(nbghostcells_x_w) ) ighost_w = 1  
     100         IF  ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo)-Agrif_Parent(nbghostcells_x_w) ) ighost_e = 1  
     101         IF  ( Agrif_Iy() == 2 - Agrif_Parent(nbghostcells_y_s) ) ighost_s = 1  
     102         IF  ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo)-Agrif_Parent(nbghostcells_y_s) ) ighost_n = 1  
    103103         kpi  = nbcellsx + ighost_w + ighost_e 
    104104         kpj  = nbcellsy + ighost_s + ighost_n 
Note: See TracChangeset for help on using the changeset viewer.