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

Changeset 14687


Ignore:
Timestamp:
2021-04-09T17:48:50+02:00 (3 years ago)
Author:
jchanut
Message:

#Changes to accomodate AGRIF new grid positionning implemented at r14674 and r14675, #2638

Location:
utils/tools/DOMAINcfg
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • utils/tools/DOMAINcfg/AGRIF_FixedGrids.in

    r14625 r14687  
    112 
    2 43 83 52 94 1 1 1 
    3 123 154 113 146 4 4 4 
     245 85 53 95 1 1 1 
     3125 156 114 147 4 4 4 
    440 
    551 
  • utils/tools/DOMAINcfg/make_namelist.py

    r14674 r14687  
    2020Agrilefile="AGRIF_FixedGrids.in" 
    2121grid=[] 
    22 nbghostcells  = 3 
     22nbghostcells  = 4  
    2323nbghostcells_x = nbghostcells 
    2424nbghostcells_y = nbghostcells 
  • utils/tools/DOMAINcfg/src/agrif_connect.F90

    r14640 r14687  
    180180      ! --- West --- ! 
    181181      IF( ((nbondi == -1) .OR. (nbondi == 2) ).AND. .NOT. (jperio == 1 .OR. jperio == 4 .OR. jperio == 6)) THEN 
    182          ind1 = nn_hls + 1 + nbghostcells + istart 
     182         ind1 = nn_hls + nbghostcells + istart 
    183183         ind2 = ind1 + ispongearea  
    184184         DO ji = mi0(ind1), mi1(ind2)    
     
    189189            ! ghost cells: 
    190190            ind1 = 1 
    191             ind2 = nn_hls + 1 + nbghostcells + istart  ! halo + land + nbghostcells 
     191            ind2 = nn_hls + nbghostcells + istart  ! halo + land + nbghostcells 
    192192            DO ji = mi0(ind1), mi1(ind2)    
    193193               DO jj = 1, jpj                
     
    199199      ! --- East --- ! 
    200200      IF( ((nbondi == 1) .OR. (nbondi == 2) ).AND. .NOT. (jperio == 1 .OR. jperio == 4 .OR. jperio == 6)) THEN 
    201          ind2 = jpiglo -  (nn_hls + nbghostcells ) - istart 
     201         ind2 = jpiglo -  (nn_hls + nbghostcells -1 ) - istart 
    202202         ind1 = ind2 -ispongearea        
    203203         DO ji = mi0(ind1), mi1(ind2) 
     
    207207         ENDDO 
    208208            ! ghost cells: 
    209             ind1 = jpiglo -  (nn_hls + nbghostcells ) - istart   ! halo + land + nbghostcells - 1 
     209            ind1 = jpiglo -  (nn_hls + nbghostcells - 1 ) - istart   ! halo + land + nbghostcells - 1 
    210210            ind2 = jpiglo - 1 
    211211            DO ji = mi0(ind1), mi1(ind2) 
     
    218218      ! --- South --- ! 
    219219      IF(( (nbondj == -1) .OR. (nbondj == 2) ).AND.(lk_south)) THEN 
    220          ind1 = nn_hls + 1 + nbghostcells + istart 
     220         ind1 = nn_hls + nbghostcells + istart 
    221221         ind2 = ind1 + ispongearea  
    222222         DO jj = mj0(ind1), mj1(ind2)  
     
    227227            ! ghost cells: 
    228228            ind1 = 1 
    229             ind2 = nn_hls + 1 + nbghostcells + istart                 ! halo + land + nbghostcells 
     229            ind2 = nn_hls + nbghostcells + istart                 ! halo + land + nbghostcells 
    230230            DO jj = mj0(ind1), mj1(ind2)  
    231231               DO ji = 1, jpi 
     
    237237      ! --- North --- ! 
    238238      IF( (nbondj == 1) .OR. (nbondj == 2) ) THEN 
    239          ind2 = jpjglo - (nn_hls + nbghostcells) - istart 
     239         ind2 = jpjglo - (nn_hls + nbghostcells - 1) - istart 
    240240         ind1 = ind2 -ispongearea 
    241241         DO jj = mj0(ind1), mj1(ind2) 
     
    245245         ENDDO 
    246246            ! ghost cells: 
    247             ind1 = jpjglo - (nn_hls + nbghostcells) - istart      ! halo + land + nbghostcells - 1 
     247            ind1 = jpjglo - (nn_hls + nbghostcells - 1) - istart      ! halo + land + nbghostcells - 1 
    248248            ind2 = jpjglo 
    249249            DO jj = mj0(ind1), mj1(ind2) 
  • utils/tools/DOMAINcfg/src/par_oce.f90

    r14623 r14687  
    5555   ! global domain size for AGRIF     !!! * total AGRIF computational domain * 
    5656   INTEGER, PUBLIC            ::   nbug_in_agrif_conv_do_not_remove_or_modify = 1 - 1 
    57    INTEGER, PUBLIC, PARAMETER ::   nbghostcells = 3 !: number of ghost cells: default value 
     57   INTEGER, PUBLIC, PARAMETER ::   nbghostcells = 4 !: number of ghost cells: default value 
    5858   INTEGER, PUBLIC            ::   nbghostcells_x   !: number of ghost cells in i-direction 
    5959   INTEGER, PUBLIC            ::   nbghostcells_y_s   !: number of ghost cells in j-direction at south 
Note: See TracChangeset for help on using the changeset viewer.