105 type(local_grid_type) :: local_grid
106 logical,
dimension(3) :: retrieve_same_neigh_info
108 allocate( local_grid%neighbours(3,4) )
109 local_grid%halo_size(y_index) = 2
110 local_grid%halo_size(x_index) = 2
112 local_grid%neighbours(y_index,1) = 2
113 local_grid%neighbours(y_index,2) = 2
114 local_grid%neighbours(y_index,3) = 8
115 local_grid%neighbours(y_index,4) = 8
117 local_grid%neighbours(x_index,1) = 4
118 local_grid%neighbours(x_index,2) = 4
119 local_grid%neighbours(x_index,3) = 6
120 local_grid%neighbours(x_index,4) = 6
122 retrieve_same_neigh_info = retrieve_same_neighbour_information(local_grid)
124 call assert_true(retrieve_same_neigh_info(1),
"Test Z")
125 call assert_false(retrieve_same_neigh_info(2),
"Test Y")
126 call assert_false(retrieve_same_neigh_info(3),
"Test Z")
129 local_grid%neighbours(y_index,3) = 2
130 local_grid%neighbours(y_index,4) = 2
132 retrieve_same_neigh_info = retrieve_same_neighbour_information(local_grid)
134 call assert_true(retrieve_same_neigh_info(1),
"Test Z")
135 call assert_true(retrieve_same_neigh_info(2),
"Test Y")
136 call assert_false(retrieve_same_neigh_info(3),
"Test Z")