4 program computational_domain_2d
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(2, n_boxes)
17 integer :: nb_list(a2_num_neighbors, n_boxes)
20 ix_list(:, 1) = [1, 1]
21 ix_list(:, 2) = [2, 1]
23 call a2_init(tree, n_cell, n_var_cc, n_var_fc, dr)
24 call a2_set_base(tree, n_boxes, ix_list)
25 call a2_write_vtk(tree,
"computational_domain_2d_1", dir=
"output")
29 ix_list(:, 1) = [1, 1]
30 ix_list(:, 2) = [1, 2]
32 call a2_init(tree, n_cell, n_var_cc, n_var_fc, dr)
33 call a2_set_base(tree, n_boxes, ix_list)
34 call a2_write_vtk(tree,
"computational_domain_2d_2", dir=
"output")
38 ix_list(:, 1) = [1, 1]
39 ix_list(:, 2) = [2, 1]
41 nb_list(:, :) = af_no_box
42 nb_list(a2_neighb_lowx, 1) = 2
43 nb_list(a2_neighb_lowy, 1) = 1
44 nb_list(a2_neighb_lowy, 2) = 2
46 call a2_init(tree, n_cell, n_var_cc, n_var_fc, dr)
47 call a2_set_base(tree, n_boxes, ix_list, nb_list)
48 call a2_write_vtk(tree,
"computational_domain_2d_3", dir=
"output")
51 end program computational_domain_2d
Module which contains all Afivo modules, so that a user does not have to include them separately...