MPI-AMRVAC  3.1
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 
32 end module mod_connectivity
This module contains variables that describe the connectivity of the mesh and also data structures fo...
integer, dimension(:), allocatable igrids
integer igridstail_passive
integer, dimension(:), allocatable igrids_active
logical, dimension(:^d &,:), allocatable neighbor_active
integer, dimension(^nd) nsend_fc
integer, dimension(^nd) nrecv_fc
integer, parameter neighbor_coarse
integer, dimension(:^d &,:), allocatable neighbor_pole
integer, dimension(^nd) nsend_cc
integer, dimension(:,:^d &,:), allocatable neighbor
integer, parameter neighbor_boundary
integer, dimension(:), allocatable igrids_passive
integer, dimension(:,:^d &,:), allocatable neighbor_child
integer, parameter neighbor_fine
integer, parameter neighbor_sibling
integer, dimension(:^d &,:), allocatable neighbor_type
integer, dimension(^nd) nrecv_cc