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 – 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

Location:
NEMO/trunk/tests/DOME
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/tests/DOME/EXPREF/1_namelist_cfg

    r14843 r15265  
    77&namagrif      !  AGRIF zoom                                            ("key_agrif") 
    88!----------------------------------------------------------------------- 
    9    ln_agrif_2way   = .true. !  activate two way nesting 
    10    ln_init_chfrpar = .false.!  initialize child grids from parent 
    119   ln_vert_remap   = .true. !  use vertical remapping 
    12    ln_chk_bathy    = .true. !  =T  check the parent bathymetry 
    13    ln_spc_dyn      = .false. 
    1410   rn_sponge_tra   = 0.0    !  coefficient for tracer   sponge layer [] 
    15    rn_sponge_dyn   = 0.002  !  coefficient for dynamics sponge layer [] 
    16    rn_trelax_tra   = 0.01   !  inverse of relaxation time (in steps) for tracers [] 
    17    rn_trelax_dyn   = 0.01   !  inverse of relaxation time (in steps) for dynamics [] 
    1811/ 
    1912!----------------------------------------------------------------------- 
  • 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.