32 #ifndef P8EST_ITERATE_H
33 #define P8EST_ITERATE_H
342 p8est_iter_cside_array_index_int (sc_array_t * array,
int it)
345 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
355 p8est_iter_cside_array_index (sc_array_t * array,
size_t it)
358 P4EST_ASSERT (it < array->elem_count);
368 p8est_iter_eside_array_index_int (sc_array_t * array,
int it)
371 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
381 p8est_iter_eside_array_index (sc_array_t * array,
size_t it)
384 P4EST_ASSERT (it < array->elem_count);
394 p8est_iter_fside_array_index_int (sc_array_t * array,
int it)
397 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
407 p8est_iter_fside_array_index (sc_array_t * array,
size_t it)
410 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.
struct p8est_iter_volume_info p8est_iter_volume_info_t
The information that is available to the user-defined p8est_iter_volume_t callback function.
struct p8est_iter_face_side p8est_iter_face_side_t
Information about one side of a face in the forest.
void(* p8est_iter_edge_t)(p8est_iter_edge_info_t *info, void *user_data)
The prototype for a function that p8est_iterate will execute wherever the edge is an edge of all quad...
Definition: p8est_iterate.h:232
struct p8est_iter_corner_info p8est_iter_corner_info_t
The information that is available to the user-defined p8est_iter_corner_t callback.
struct p8est_iter_edge_side_full p8est_iter_edge_side_full_t
Shortcut to access full edge information.
void(* p8est_iter_corner_t)(p8est_iter_corner_info_t *info, void *user_data)
The prototype for a function that p8est_iterate will execute wherever the corner is a corner for all ...
Definition: p8est_iterate.h:288
void(* p8est_iter_volume_t)(p8est_iter_volume_info_t *info, void *user_data)
The prototype for a function that p8est_iterate() will execute at every quadrant local to the current...
Definition: p8est_iterate.h:62
void(* p8est_iter_face_t)(p8est_iter_face_info_t *info, void *user_data)
The prototype for a function that p8est_iterate() will execute wherever two quadrants share a face: t...
Definition: p8est_iterate.h:144
void p8est_iterate(p8est_t *p4est, p8est_ghost_t *ghost_layer, void *user_data, p8est_iter_volume_t iter_volume, p8est_iter_face_t iter_face, p8est_iter_edge_t iter_edge, p8est_iter_corner_t iter_corner)
Execute the user-supplied callback functions at every volume, face, edge and corner in the local fore...
struct p8est_iter_face_side_hanging p8est_iter_face_side_hanging_t
Shortcut to access hanging face information.
struct p8est_iter_edge_info p8est_iter_edge_info_t
The information about all sides of an edge in the forest.
struct p8est_iter_face_side_full p8est_iter_face_side_full_t
Shortcut to access full face information.
struct p8est_iter_face_info p8est_iter_face_info_t
The information that is available to the user-defined p8est_iter_face_t callback.
struct p8est_iter_edge_side_hanging p8est_iter_edge_side_hanging_t
Shortcut to access hanging edge information.
The p4est forest datatype.
Definition: p4est.h:150
Quadrants that neighbor the local domain.
Definition: p8est_ghost.h:46
The information that is available to the user-defined p8est_iter_corner_t callback.
Definition: p8est_iterate.h:267
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p8est_iterate.h:270
sc_array_t sides
array of p8est_iter_corner_side_t type
Definition: p8est_iterate.h:272
Definition: p8est_iterate.h:245
p4est_locidx_t quadid
the index in the tree or ghost array
Definition: p8est_iterate.h:251
int8_t corner
which of the quadrant's corners touches this corner
Definition: p8est_iterate.h:247
int8_t faces[3]
internal work data
Definition: p8est_iterate.h:252
int8_t edges[3]
internal work data
Definition: p8est_iterate.h:253
p4est_topidx_t treeid
the tree that contains quad
Definition: p8est_iterate.h:246
int8_t is_ghost
boolean: local (0) or ghost (1)
Definition: p8est_iterate.h:249
The information about all sides of an edge in the forest.
Definition: p8est_iterate.h:213
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p8est_iterate.h:216
sc_array_t sides
array of p8est_iter_edge_side_t type
Definition: p8est_iterate.h:218
Shortcut to access full edge information.
Definition: p8est_iterate.h:149
p8est_quadrant_t * quad
the actual quadrant
Definition: p8est_iterate.h:151
p4est_locidx_t quadid
index in tree or ghost array
Definition: p8est_iterate.h:152
int8_t is_ghost
boolean: local (0) or ghost
Definition: p8est_iterate.h:150
Shortcut to access hanging edge information.
Definition: p8est_iterate.h:159
p4est_locidx_t quadid[2]
index in tree or ghost array
Definition: p8est_iterate.h:162
p8est_quadrant_t * quad[2]
the actual quadrant
Definition: p8est_iterate.h:161
int8_t is_ghost[2]
boolean: local (0) or ghost
Definition: p8est_iterate.h:160
Definition: p8est_iterate.h:182
int8_t edge
which quadrant side the edge touches
Definition: p8est_iterate.h:184
int8_t orientation
the orientation of each quadrant relative to this edge, as in the definition of p8est_connectivity_t
Definition: p8est_iterate.h:186
int8_t is_hanging
boolean: one full quad (0) or two smaller quads (1)
Definition: p8est_iterate.h:190
p4est_topidx_t treeid
the tree on this side
Definition: p8est_iterate.h:183
The information that is available to the user-defined p8est_iter_face_t callback.
Definition: p8est_iterate.h:122
int8_t orientation
the orientation of the sides to each other, as in the definition of p8est_connectivity_t
Definition: p8est_iterate.h:125
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p8est_iterate.h:128
Shortcut to access full face information.
Definition: p8est_iterate.h:67
int8_t is_ghost
boolean: local (0) or ghost
Definition: p8est_iterate.h:68
p8est_quadrant_t * quad
the actual quadrant
Definition: p8est_iterate.h:69
p4est_locidx_t quadid
index in tree or ghost array
Definition: p8est_iterate.h:70
Shortcut to access hanging face information.
Definition: p8est_iterate.h:77
int8_t is_ghost[4]
boolean: local (0) or ghost
Definition: p8est_iterate.h:78
p8est_quadrant_t * quad[4]
the actual quadrant
Definition: p8est_iterate.h:79
p4est_locidx_t quadid[4]
index in tree or ghost array
Definition: p8est_iterate.h:80
Information about one side of a face in the forest.
Definition: p8est_iterate.h:92
int8_t face
which quadrant side the face touches
Definition: p8est_iterate.h:94
p4est_topidx_t treeid
the tree on this side
Definition: p8est_iterate.h:93
int8_t is_hanging
boolean: one full quad (0) or four smaller quads (1)
Definition: p8est_iterate.h:96
The information that is available to the user-defined p8est_iter_volume_t callback function.
Definition: p8est_iterate.h:47
p8est_quadrant_t * quad
the quadrant of the callback
Definition: p8est_iterate.h:50
p4est_locidx_t quadid
id in quad's tree array (see p8est_tree_t)
Definition: p8est_iterate.h:51
p4est_topidx_t treeid
the tree containing quad
Definition: p8est_iterate.h:53
The 3D quadrant (i.e., octant) datatype.
Definition: p8est.h:72
The p8est forest datatype.
Definition: p8est.h:146
Definition: p8est_iterate.h:193
p8est_iter_edge_side_hanging_t hanging
if is_hanging, use is.hanging to access per-quadrant data
Definition: p8est_iterate.h:198
p8est_iter_edge_side_full_t full
if !is_hanging, use is.full to access per-quadrant data
Definition: p8est_iterate.h:195
Definition: p8est_iterate.h:99
p8est_iter_face_side_full_t full
if !is_hanging, use is.full to access per-quadrant data
Definition: p8est_iterate.h:101
p8est_iter_face_side_hanging_t hanging
if is_hanging, use is.hanging to access per-quadrant data
Definition: p8est_iterate.h:104