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 9166 for branches/2017/dev_merge_2017/NEMOGCM/TOOLS/NESTING/src/agrif_types.f90 – NEMO

Ignore:
Timestamp:
2017-12-22T16:45:51+01:00 (6 years ago)
Author:
jchanut
Message:

NESTING TOOLS:
Fixes to account for user defined number of ghostcells - still set to 1 to be consistent with NEMO
Set child grid bathymetry near boundaries to nearest neighbor interpolation from parent
Update Coarse grid bathymetry so that each cell volume matches child grid average

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/NESTING/src/agrif_types.f90

    r9149 r9166  
    4242  INTEGER irafx,irafy 
    4343  INTEGER nxfin,nyfin 
    44   INTEGER, PARAMETER :: nbghostcellsfine = 2 
     44  INTEGER, PARAMETER :: nbghostcellsfine = 1  
    4545  INTEGER, PARAMETER :: nbghostcellscoarse = 1 
    4646  !       
     
    176176       jmax = jmax + jpjzoom - 1 
    177177       ! 
    178        nxfin = (imax-imin)*irafx+nbghostcellsfine*2 
    179        nyfin = (jmax-jmin)*irafy+nbghostcellsfine*2 
     178       nxfin = (imax-imin)*irafx+2*nbghostcellsfine+2 
     179       nyfin = (jmax-jmin)*irafy+2*nbghostcellsfine+2 
    180180       ! 
    181181    ELSE 
Note: See TracChangeset for help on using the changeset viewer.