Afivo
0.3
|
This module contains routines for restriction: going from fine to coarse variables. More...
Functions/Subroutines | |
subroutine, public | a3_restrict_to_box (boxes, id, iv, iv_to) |
Restrict the children of a box to the box (e.g., in 2D, average the values at the four children to get the value for the parent) More... | |
subroutine, public | a3_restrict_to_boxes (boxes, ids, iv, iv_to) |
Restrict the children of boxes ids(:) to them. More... | |
subroutine, public | a3_restrict_tree (tree, iv, iv_to) |
Restrict variables iv to all parent boxes, from the highest to the lowest level. More... | |
subroutine, public | a3_restrict_box (box_c, box_p, iv, iv_to, use_geometry) |
Restriction of child box (box_c) to its parent (box_p) More... | |
This module contains routines for restriction: going from fine to coarse variables.
subroutine, public m_a3_restrict::a3_restrict_to_box | ( | type(box3_t), dimension(:), intent(inout) | boxes, |
integer, intent(in) | id, | ||
integer, intent(in) | iv, | ||
integer, intent(in), optional | iv_to | ||
) |
Restrict the children of a box to the box (e.g., in 2D, average the values at the four children to get the value for the parent)
[in,out] | boxes | List of all the boxes |
[in] | id | Box whose children will be restricted to it |
[in] | iv | Variable to restrict |
[in] | iv_to | Destination (if /= iv) |
Definition at line 22 of file m_a3_restrict.f90.
subroutine, public m_a3_restrict::a3_restrict_to_boxes | ( | type(box3_t), dimension(:), intent(inout) | boxes, |
integer, dimension(:), intent(in) | ids, | ||
integer, intent(in) | iv, | ||
integer, intent(in), optional | iv_to | ||
) |
Restrict the children of boxes ids(:) to them.
[in,out] | boxes | List of all the boxes |
[in] | ids | Boxes whose children will be restricted to it |
[in] | iv | Variable to restrict |
[in] | iv_to | Destination (if /= iv) |
Definition at line 38 of file m_a3_restrict.f90.
subroutine, public m_a3_restrict::a3_restrict_tree | ( | type(a3_t), intent(inout) | tree, |
integer, intent(in) | iv, | ||
integer, intent(in), optional | iv_to | ||
) |
Restrict variables iv to all parent boxes, from the highest to the lowest level.
[in,out] | tree | Tree to restrict on |
[in] | iv | Variable to restrict |
[in] | iv_to | Destination (if /= iv) |
Definition at line 53 of file m_a3_restrict.f90.
subroutine, public m_a3_restrict::a3_restrict_box | ( | type(box3_t), intent(in) | box_c, |
type(box3_t), intent(inout) | box_p, | ||
integer, intent(in) | iv, | ||
integer, intent(in), optional | iv_to, | ||
logical, intent(in), optional | use_geometry | ||
) |
Restriction of child box (box_c) to its parent (box_p)
[in] | box_c | Child box to restrict |
[in,out] | box_p | Parent box to restrict to |
[in] | iv | Variable to restrict |
[in] | iv_to | Destination (if /= iv) |
[in] | use_geometry | If set to false, don't use geometry |
Definition at line 66 of file m_a3_restrict.f90.