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 13182 for NEMO/branches/2020/dev_r12973_AGRIF_CMEMS/src/NST/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2020-06-30T18:05:17+02:00 (4 years ago)
Author:
rblod
Message:

#2129 : move lk_south declaration + compatibility with SAS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12973_AGRIF_CMEMS/src/NST/agrif_user.F90

    r13162 r13182  
    239239 
    240240      IF( agrif_oce_alloc()  > 0 )   CALL ctl_warn('agrif agrif_oce_alloc: allocation of arrays failed') 
    241  
    242       lk_west  = .NOT. ( Agrif_Ix() == 1 ) 
    243       lk_east  = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(jpiglo) -1 ) 
    244       lk_south = .NOT. ( Agrif_Iy() == 1 ) 
    245       lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(jpjglo) -1 ) 
    246241 
    247242      ! Build consistent parent bathymetry and number of levels 
     
    877872         WRITE(numout,*) '      check bathymetry                  ln_chk_bathy  = ', ln_chk_bathy 
    878873      ENDIF 
     874 
     875      lk_west  = .NOT. ( Agrif_Ix() == 1 ) 
     876      lk_east  = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(jpiglo) -1 ) 
     877      lk_south = .NOT. ( Agrif_Iy() == 1 ) 
     878      lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(jpjglo) -1 ) 
     879 
    879880      ! 
    880881      ! Set the number of ghost cells according to periodicity 
     
    885886      IF ( jperio == 1 ) nbghostcells_x = 0 
    886887      IF ( .NOT. lk_south ) nbghostcells_y_s = 0 
     888 
     889      write(*,*) lk_south, nbghostcells_y_s, nbghostcells_y_n 
    887890 
    888891      ! Some checks 
Note: See TracChangeset for help on using the changeset viewer.