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.
Users/ModelInterfacing/AGRIF (diff) – NEMO

Changes between Version 2 and Version 3 of Users/ModelInterfacing/AGRIF


Ignore:
Timestamp:
2018-08-30T11:28:05+02:00 (6 years ago)
Author:
jchanut
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Users/ModelInterfacing/AGRIF

    v2 v3  
    1010 
    1111== Overview 
     12 
     13AGRIF (Adapative Grid Refinement In Fortran) is a library that allows the seamless refinement of rectangular regions in NEMO. Activating AGRIF requires the cpp key "key_agrif" to be defined at compilation time. Although this is transparent to users, the way the code is processed during compilation is different from the standard case: a preprocessing stage (the so called "conv" program) translates the actual code so that saved arrays may be be switched in memory space from one domain to an other.  
     14An additional text file "AGRIF_FixedGrids.in" is also required at run time. This is where the grid hierarchy is defined. An example of such a file, here taken from the VORTEX test case, is given below:  
     15{{{ 
     161 
     1719 38 19 38 3 3 3 
     180 
     19}}} 
     20The first line indicates the number of zooms (1). The second line contains the starting and ending indexes in both directions on the root grid (19 38 19 38) followed by the space and time refinement factors (3 3 3). The last line is the number of child grid nested in the refined region (0). A more complex example with telescoping grids can be found in the AGRIF_DEMO reference configuration directory (NEMO 4.0 only). 
     21 
     22 
     23 
     24 
    1225 
    1326Main features of AGRIF in NEMO, what can be done: