4 program computational_domain_3d
10 real(dp) :: dr = 1.0_dp
11 integer :: n_var_cc = 1
12 integer :: n_var_fc = 0
15 integer,
parameter :: n_boxes = 2
16 integer :: ix_list(3, n_boxes)
17 integer :: nb_list(a3_num_neighbors, n_boxes)
20 ix_list(:, 1) = [1, 1, 1]
21 ix_list(:, 2) = [2, 1, 1]
23 call a3_init(tree, n_cell, n_var_cc, n_var_fc, dr)
24 call a3_set_base(tree, n_boxes, ix_list)
25 call a3_write_vtk(tree,
"computational_domain_3d_1", dir=
"output")
29 ix_list(:, 1) = [1, 1, 1]
30 ix_list(:, 2) = [1, 2, 1]
32 call a3_init(tree, n_cell, n_var_cc, n_var_fc, dr)
33 call a3_set_base(tree, n_boxes, ix_list)
34 call a3_write_vtk(tree,
"computational_domain_3d_2", dir=
"output")
38 ix_list(:, 1) = [1, 1, 1]
39 ix_list(:, 2) = [2, 1, 1]
41 nb_list(:, :) = af_no_box
42 nb_list(a3_neighb_lowx, 1) = 2
43 nb_list(a3_neighb_lowy, 1) = 1
44 nb_list(a3_neighb_lowy, 2) = 2
45 nb_list(a3_neighb_lowz, 1) = 1
46 nb_list(a3_neighb_lowz, 2) = 2
48 call a3_init(tree, n_cell, n_var_cc, n_var_fc, dr)
49 call a3_set_base(tree, n_boxes, ix_list, nb_list)
50 call a3_write_vtk(tree,
"computational_domain_3d_3", dir=
"output")
53 end program computational_domain_3d