MPI-AMRVAC  2.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
mod_connectivity.t
Go to the documentation of this file.
1 !> This module contains variables that describe the connectivity of the mesh and
2 !> also data structures for connectivity-related communication.
4  implicit none
5  save
6 
7  integer, parameter :: neighbor_boundary = 1
8  integer, parameter :: neighbor_coarse = 2
9  integer, parameter :: neighbor_sibling = 3
10  integer, parameter :: neighbor_fine = 4
11 
12  integer, dimension(:,:^D&,:), allocatable :: neighbor
13  integer, dimension(:,:^D&,:), allocatable :: neighbor_child
14  integer, dimension(:^D&,:), allocatable :: neighbor_type
15  logical, dimension(:^D&,:), allocatable :: neighbor_active
16  integer, dimension(:^D&,:), allocatable :: neighbor_pole
17 
18  ! grid number array per processor
19  integer, dimension(:), allocatable :: igrids
20  integer, dimension(:), allocatable :: igrids_active
21  integer, dimension(:), allocatable :: igrids_passive
22  ! number of grids on current processor
23  integer :: igridstail
24  integer :: igridstail_active
25  integer :: igridstail_passive
26 
27  integer, dimension(^ND) :: nrecv_fc, nsend_fc
28  ! cc for corner coarse
29  integer, dimension(^ND) :: nrecv_cc, nsend_cc
30 
31 !$OMP THREADPRIVATE(leveljump)
32 
33 end module mod_connectivity
integer igridstail_passive
integer, parameter neighbor_sibling
integer, dimension(^nd) nsend_cc
integer, parameter neighbor_coarse
integer, dimension(^nd) nrecv_cc
integer, dimension(:,:^d &,:), allocatable neighbor
integer, dimension(:), allocatable igrids
integer, dimension(:^d &,:), allocatable neighbor_pole
integer, parameter neighbor_boundary
integer, dimension(:), allocatable igrids_passive
integer, parameter neighbor_fine
This module contains variables that describe the connectivity of the mesh and also data structures fo...
integer, dimension(^nd) nrecv_fc
integer, dimension(:), allocatable igrids_active
integer, dimension(^nd) nsend_fc
logical, dimension(:^d &,:), allocatable neighbor_active
integer, dimension(:^d &,:), allocatable neighbor_type
integer, dimension(:,:^d &,:), allocatable neighbor_child