MPI-AMRVAC  3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
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  ! number of grids on current processor
13  integer :: igridstail
14  integer :: igridstail_active
15  integer :: igridstail_passive
16 
17  integer, dimension(:,:^D&,:), allocatable :: neighbor
18  integer, dimension(:,:^D&,:), allocatable :: neighbor_child
19  integer, dimension(:^D&,:), allocatable :: neighbor_type
20  integer, dimension(:^D&,:), allocatable :: neighbor_pole
21 
22  ! grid number array per processor
23  integer, dimension(:), allocatable :: igrids
24  integer, dimension(:), allocatable :: igrids_active
25  integer, dimension(:), allocatable :: igrids_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  logical, dimension(:^D&,:), allocatable :: neighbor_active
32 
33 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