This module contains the subroutines that find the adjacent neighbors of a given cell, in a cubed sphere grid.
More...
|
integer function | cs_nb::bndry (i, j) |
| Get boundary type from indices for global grid.
|
|
integer function | cs_nb::bndry_reg (i, j) |
| Get boundary type from indices for regional grid.
|
|
subroutine | cs_nb::idx_init (cres_in) |
| Initialize inter-panel neighbor index for global grid.
|
|
subroutine | cs_nb::idx_init_reg (xres_in, yres_in) |
| Initialize resolution module variables for regional grid.
|
|
subroutine | cs_nb::neighbors (tile, i, j, nb) |
| Get neighbors of cell 'c' at (tile, i, j) for global grid.
|
|
subroutine | cs_nb::neighbors_reg (i, j, nb) |
| Get neighbors of cell 'c' at (tile, i, j) for regional grid.
|
|
This module contains the subroutines that find the adjacent neighbors of a given cell, in a cubed sphere grid.
Each neighbor is in the form of (i,j,tile).
- Author
- Ning Wang
- Date
- July 1, 2020
Definition in file nb.F90.
subroutine cs_nb::idx_init |
( |
integer | cres_in | ) |
|
Initialize inter-panel neighbor index for global grid.
- Parameters
-
[in] | cres_in | cubed sphere resolution (48, 96...) |
!! _______1_______
!! | | 1-upper, 2-bottom, 3-left, 4-right
!! | |
!! | |
!! 3| |4
!! | |
!! | |
!! |_______________|
!! 2
!! Figure 1. Boundary numbers
!!
- Author
- Ning Wang
Definition at line 48 of file nb.F90.
subroutine cs_nb::neighbors |
( |
integer | tile, |
|
|
integer | i, |
|
|
integer | j, |
|
|
type(nb_gp_idx) | nb ) |
Get neighbors of cell 'c' at (tile, i, j) for global grid.
!! ______________
!! | | | | ________
!! | 5 | 1 | 6 | /\ 1 \ 6 \
!! |____|____|____| / \___\___\
!! | | | | /\2 / c / 3 /
!! | 2 | c | 3 | / \/___/___/
!! |____|____|____| \7 / 4 / 8 /
!! | | | | \/___/___/
!! | 7 | 4 | 8 |
!! |____|____|____|
!!
!! Figure 2. Eight neighbors of cell 'c' and special cases at upper left
!! cornner of the tile
!!
- Parameters
-
[in] | tile | tile face |
[in] | i | cell index |
[in] | j | cell index |
[out] | nb | neighbors |
- Author
- Ning Wang
Definition at line 192 of file nb.F90.