32#ifndef P4EST_ITERATE_H
33#define P4EST_ITERATE_H
243p4est_iter_cside_array_index_int (sc_array_t * array,
int it)
246 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
256p4est_iter_cside_array_index (sc_array_t * array,
size_t it)
259 P4EST_ASSERT (it < array->elem_count);
269p4est_iter_fside_array_index_int (sc_array_t * array,
int it)
272 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
282p4est_iter_fside_array_index (sc_array_t * array,
size_t it)
285 P4EST_ASSERT (it < array->elem_count);
int32_t p4est_topidx_t
Typedef for counting topological entities (trees, tree vertices).
Definition: p4est_base.h:93
int32_t p4est_locidx_t
Typedef for processor-local indexing of quadrants and nodes.
Definition: p4est_base.h:106
passing quadrants and data to neighboring processes
void(* p4est_iter_corner_t)(p4est_iter_corner_info_t *info, void *user_data)
The prototype for a function that p4est_iterate will execute wherever quadrants meet at a conformal c...
Definition: p4est_iterate.h:194
struct p4est_iter_face_info p4est_iter_face_info_t
The information that is available to the user-defined p4est_iter_face_t callback.
struct p4est_iter_volume_info p4est_iter_volume_info_t
The information that is available to the user-defined p4est_iter_volume_t callback function.
struct p4est_iter_corner_info p4est_iter_corner_info_t
The information that is available to the user-defined p4est_iter_corner_t callback.
struct p4est_iter_corner_side p4est_iter_corner_side_t
Information about one side of a corner in the forest.
void p4est_iterate(p4est_t *p4est, p4est_ghost_t *ghost_layer, void *user_data, p4est_iter_volume_t iter_volume, p4est_iter_face_t iter_face, p4est_iter_corner_t iter_corner)
Execute user supplied callbacks at every volume, face, and corner in the local forest.
void(* p4est_iter_volume_t)(p4est_iter_volume_info_t *info, void *user_data)
The prototype for a function that p4est_iterate will execute at every quadrant local to the current p...
Definition: p4est_iterate.h:62
void(* p4est_iter_face_t)(p4est_iter_face_info_t *info, void *user_data)
The prototype for a function that p4est_iterate will execute wherever two quadrants share a face: the...
Definition: p4est_iterate.h:138
struct p4est_iter_face_side p4est_iter_face_side_t
Information about one side of a face in the forest.
quadrants that neighbor the local domain
Definition: p4est_ghost.h:41
The information that is available to the user-defined p4est_iter_corner_t callback.
Definition: p4est_iterate.h:173
sc_array_t sides
array of type p4est_iter_corner_side_t type
Definition: p4est_iterate.h:178
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p4est_iterate.h:176
Information about one side of a corner in the forest.
Definition: p4est_iterate.h:152
p4est_locidx_t quadid
the index in the tree or ghost array
Definition: p4est_iterate.h:158
int8_t corner
which of the quadrant's corners touches this corner
Definition: p4est_iterate.h:154
p4est_topidx_t treeid
the tree that contains quad
Definition: p4est_iterate.h:153
int8_t faces[2]
internal work data
Definition: p4est_iterate.h:159
int8_t is_ghost
boolean: local (0) or ghost (1)
Definition: p4est_iterate.h:156
The information that is available to the user-defined p4est_iter_face_t callback.
Definition: p4est_iterate.h:116
int8_t orientation
the orientation of the sides to each other, as in the definition of p4est_connectivity_t
Definition: p4est_iterate.h:119
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p4est_iterate.h:122
Information about one side of a face in the forest.
Definition: p4est_iterate.h:75
int8_t face
which quadrant side the face touches
Definition: p4est_iterate.h:77
p4est_topidx_t treeid
the tree on this side
Definition: p4est_iterate.h:76
int8_t is_hanging
boolean: one full quad (0) or two smaller quads (1)
Definition: p4est_iterate.h:79
The information that is available to the user-defined p4est_iter_volume_t callback function.
Definition: p4est_iterate.h:47
p4est_quadrant_t * quad
the quadrant of the callback
Definition: p4est_iterate.h:50
p4est_locidx_t quadid
id in quad's tree array (see p4est_tree_t)
Definition: p4est_iterate.h:51
p4est_topidx_t treeid
the tree containing quad
Definition: p4est_iterate.h:53
The 2D quadrant datatype.
Definition: p4est.h:72
The p4est forest datatype.
Definition: p4est.h:136
Definition: p4est_iterate.h:82
struct p4est_iter_face_side::p4est_iter_face_side_data::@3 full
if is_hanging = 0, use is.full to access per-quadrant data
p4est_quadrant_t * quad
the actual quadrant
Definition: p4est_iterate.h:86
p4est_locidx_t quadid
index in tree or ghost array
Definition: p4est_iterate.h:87
int8_t is_ghost
boolean: local (0) or ghost (1)
Definition: p4est_iterate.h:85
struct p4est_iter_face_side::p4est_iter_face_side_data::@4 hanging
if is_hanging = 1, use is.hanging to access per-quadrant data