MFIX  2016-1
indices_mod.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv!
2 ! !
3 ! Module: indices !
4 ! Author: M. Syamlal Date: dd-mmm-yy !
5 ! !
6 ! Purpose: Global arrays for index computations. !
7 ! !
8 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^!
9  MODULE indices
10 
11  Use param1, only: max_class
12 
13 ! Increments used for index computation
26 
27  INTEGER :: increment_for_mp(6,max_class) = 0
28  INTEGER :: increment_for_nb(6,max_class) = 0
29 
30 ! Increments used for index computation of 3rd layer
37 
38 ! Store LM index values
39  INTEGER, DIMENSION(:,:), ALLOCATABLE :: store_lm
40 
41 ! Identification of the cell class
42  INTEGER, DIMENSION(:), ALLOCATABLE :: cell_class
43 
44 ! Maps between IJK and the base I/J/K indices
45  INTEGER, DIMENSION(:), ALLOCATABLE :: i_of ! IJK --> I
46  INTEGER, DIMENSION(:), ALLOCATABLE :: j_of ! IJK --> J
47  INTEGER, DIMENSION(:), ALLOCATABLE :: k_of ! IJK --> K
48 
49 ! +/- increments, shifted for cyclic BCs and DMP partitions.
50  INTEGER, DIMENSION(:), ALLOCATABLE :: im1, ip1 ! I-1, I+1
51  INTEGER, DIMENSION(:), ALLOCATABLE :: jm1, jp1 ! J-1, J+1
52  INTEGER, DIMENSION(:), ALLOCATABLE :: km1, kp1 ! K-1, K+1
53 
54 ! Identification of the cell class for higher order scheme
55  INTEGER, DIMENSION(:), ALLOCATABLE :: cell_class3
56 
57  INTEGER, DIMENSION(:), ALLOCATABLE :: i3_of
58  INTEGER, DIMENSION(:), ALLOCATABLE :: j3_of
59  INTEGER, DIMENSION(:), ALLOCATABLE :: k3_of
60 
61  INTEGER, DIMENSION(:), ALLOCATABLE :: im1_3, ip1_3
62  INTEGER, DIMENSION(:), ALLOCATABLE :: jm1_3, jp1_3
63  INTEGER, DIMENSION(:), ALLOCATABLE :: km1_3, kp1_3
64 
65 ! Save original IJK value of Background grid (new to old mapping)
66  INTEGER, DIMENSION(:), ALLOCATABLE :: background_ijk_of
67 ! Save new IJK value of Background grid (old to new mapping)
68  INTEGER, DIMENSION(:), ALLOCATABLE :: ijk_of_background
69 ! Save original IJKEND3 value of Background grid
70  INTEGER :: background_ijkend3
71 
72  END MODULE indices
integer, dimension(max_class) increment_for_jp
Definition: indices_mod.f:23
integer, dimension(:), allocatable ip1
Definition: indices_mod.f:50
integer, dimension(:), allocatable k3_of
Definition: indices_mod.f:59
integer, dimension(:), allocatable i_of
Definition: indices_mod.f:45
integer, dimension(max_class) increment_for_ip
Definition: indices_mod.f:21
integer, parameter max_class
Definition: param1_mod.f:8
integer background_ijkend3
Definition: indices_mod.f:70
integer, dimension(6, max_class) increment_for_nb
Definition: indices_mod.f:28
integer, dimension(max_class) increment3_for_kp
Definition: indices_mod.f:36
integer, dimension(:), allocatable jm1_3
Definition: indices_mod.f:62
integer, dimension(:), allocatable kp1_3
Definition: indices_mod.f:63
integer, dimension(max_class) increment3_for_jm
Definition: indices_mod.f:33
integer, dimension(:), allocatable im1
Definition: indices_mod.f:50
integer, dimension(:), allocatable im1_3
Definition: indices_mod.f:61
integer, dimension(:,:), allocatable store_lm
Definition: indices_mod.f:39
integer, dimension(max_class) increment3_for_im
Definition: indices_mod.f:31
integer, dimension(max_class) increment_for_b
Definition: indices_mod.f:19
integer, dimension(:), allocatable km1_3
Definition: indices_mod.f:63
integer, dimension(:), allocatable j3_of
Definition: indices_mod.f:58
integer, dimension(:), allocatable cell_class3
Definition: indices_mod.f:55
integer, dimension(:), allocatable k_of
Definition: indices_mod.f:47
integer, dimension(max_class) increment_for_n
Definition: indices_mod.f:14
integer, dimension(:), allocatable j_of
Definition: indices_mod.f:46
integer, dimension(:), allocatable jm1
Definition: indices_mod.f:51
integer, dimension(6, max_class) increment_for_mp
Definition: indices_mod.f:27
integer, dimension(:), allocatable jp1
Definition: indices_mod.f:51
integer, dimension(max_class) increment_for_w
Definition: indices_mod.f:17
integer, dimension(max_class) increment3_for_ip
Definition: indices_mod.f:32
integer, dimension(max_class) increment3_for_km
Definition: indices_mod.f:35
integer, dimension(:), allocatable kp1
Definition: indices_mod.f:52
integer, dimension(:), allocatable background_ijk_of
Definition: indices_mod.f:66
integer, dimension(:), allocatable ip1_3
Definition: indices_mod.f:61
integer, dimension(max_class) increment3_for_jp
Definition: indices_mod.f:34
integer, dimension(max_class) increment_for_t
Definition: indices_mod.f:18
integer, dimension(max_class) increment_for_kp
Definition: indices_mod.f:25
integer, dimension(:), allocatable km1
Definition: indices_mod.f:52
integer, dimension(max_class) increment_for_s
Definition: indices_mod.f:15
integer, dimension(max_class) increment_for_e
Definition: indices_mod.f:16
integer, dimension(max_class) increment_for_im
Definition: indices_mod.f:20
integer, dimension(:), allocatable jp1_3
Definition: indices_mod.f:62
integer, dimension(max_class) increment_for_km
Definition: indices_mod.f:24
integer, dimension(:), allocatable i3_of
Definition: indices_mod.f:57
integer, dimension(max_class) increment_for_jm
Definition: indices_mod.f:22
integer, dimension(:), allocatable ijk_of_background
Definition: indices_mod.f:68
integer, dimension(:), allocatable cell_class
Definition: indices_mod.f:42