[9809] | 1 | ============================================================= |
---|
| 2 | How to build a doubly nested configuration such as AGRIF_DEMO |
---|
| 3 | ============================================================= |
---|
| 4 | |
---|
| 5 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 6 | 1) Files needed from root (parent) grid |
---|
| 7 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 8 | - coordinates.nc |
---|
| 9 | - bathy_meter.nc |
---|
| 10 | - bathymetry database (For example GEBCO 2014 dataset) |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 14 | 2) Compile the tool |
---|
| 15 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 16 | |
---|
[9948] | 17 | $NEMOPATH/NEMOGCM/TOOLS/maketools -n NESTING -m X64_ADA -j 4 |
---|
[9809] | 18 | |
---|
| 19 | It creates 5 executables: |
---|
| 20 | - agrif_create_coordinates.exe |
---|
| 21 | - agrif_create_bathy.exe |
---|
| 22 | - agrif_create_restart.exe |
---|
| 23 | - agrif_create_restart_trc.exe |
---|
| 24 | - agrif_create_data.exe |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 28 | 3) Create coordinates and bathymetries |
---|
| 29 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 30 | |
---|
| 31 | a) agrif_create_coordinates.exe namelist_nordic1 |
---|
| 32 | It creates level 1 child grid coordinates: 1_coordinates.nc |
---|
| 33 | |
---|
| 34 | b) agrif_create_bathy.exe namelist_nordic1 |
---|
| 35 | It creates level 1 child grid bathymetry: 1_bathymeter.nc |
---|
| 36 | It updates parent grid bathymetry: bathy_updated.nc |
---|
| 37 | |
---|
| 38 | c) agrif_create_coordinates.exe namelist_nordic2 |
---|
| 39 | It creates level 2 child grid coordinates: 2_coordinates.nc |
---|
| 40 | |
---|
| 41 | d) agrif_create_bathy.exe namelist_nordic2 |
---|
| 42 | It creates level 2 child grid bathymetry: 2_bathymeter.nc |
---|
| 43 | It updates level 1 child grid bathymetry: 1_bathy_updated.nc |
---|
| 44 | |
---|
| 45 | e) agrif_create_bathy.exe namelist_nordic1_update |
---|
| 46 | It updates parent grid bathymetry: bathy_updated_parent.nc |
---|
| 47 | |
---|
| 48 | Note: This last step takes into account both levels 1 and 2 bathymetries to update the parent grid bathymetry |
---|
| 49 | to make sure that volumes match between child grids and parent grid. |
---|
| 50 | To only perform an update as in step e), i.e. without interpolation, one has to set in the namelist: |
---|
| 51 | - elevation_database = 1_bathy_updated.nc |
---|
| 52 | - type_bathy_interp = 2 |
---|
| 53 | |
---|
| 54 | ** Files needed for your model to run: |
---|
| 55 | - bathy_updated_parent.nc + coordinates.nc |
---|
| 56 | - 1_bathy_updated.nc + 1_coordinates.nc |
---|
| 57 | - 2_bathy_meter.nc + 2_coordinates.nc |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 61 | 4) Create data |
---|
| 62 | ::::::::::::::::::::::::::::::::::::::::::::::::: |
---|
| 63 | |
---|
| 64 | a) agrif_create_data.exe namelist_nordic1 |
---|
| 65 | It creates level 1 child grid data: 1_chlorophyll.nc etc |
---|
| 66 | |
---|
| 67 | b) agrif_create_data.exe namelist_nordic2 |
---|
| 68 | It creates level 2 child grid data: 2_chlorophyll.nc etc |
---|
| 69 | |
---|
| 70 | |
---|