32#ifndef P8EST_ITERATE_H
33#define P8EST_ITERATE_H
327p8est_iter_cside_array_index_int (sc_array_t * array,
int it)
330 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
340p8est_iter_cside_array_index (sc_array_t * array,
size_t it)
343 P4EST_ASSERT (it < array->elem_count);
353p8est_iter_eside_array_index_int (sc_array_t * array,
int it)
356 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
366p8est_iter_eside_array_index (sc_array_t * array,
size_t it)
369 P4EST_ASSERT (it < array->elem_count);
379p8est_iter_fside_array_index_int (sc_array_t * array,
int it)
382 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
392p8est_iter_fside_array_index (sc_array_t * array,
size_t it)
395 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:217
struct p8est_iter_corner_info p8est_iter_corner_info_t
The information that is available to the user-defined p8est_iter_corner_t callback.
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:273
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:136
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_edge_info p8est_iter_edge_info_t
The information about all sides of an edge in the forest.
struct p8est_iter_face_info p8est_iter_face_info_t
The information that is available to the user-defined p8est_iter_face_t callback.
The p4est forest datatype.
Definition: p4est.h:136
quadrants that neighbor the local domain
Definition: p8est_ghost.h:41
The information that is available to the user-defined p8est_iter_corner_t callback.
Definition: p8est_iterate.h:252
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p8est_iterate.h:255
sc_array_t sides
array of p8est_iter_corner_side_t type
Definition: p8est_iterate.h:257
Definition: p8est_iterate.h:230
p4est_locidx_t quadid
the index in the tree or ghost array
Definition: p8est_iterate.h:236
int8_t corner
which of the quadrant's corners touches this corner
Definition: p8est_iterate.h:232
int8_t faces[3]
internal work data
Definition: p8est_iterate.h:237
int8_t edges[3]
internal work data
Definition: p8est_iterate.h:238
p4est_topidx_t treeid
the tree that contains quad
Definition: p8est_iterate.h:231
int8_t is_ghost
boolean: local (0) or ghost (1)
Definition: p8est_iterate.h:234
The information about all sides of an edge in the forest.
Definition: p8est_iterate.h:198
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p8est_iterate.h:201
sc_array_t sides
array of p8est_iter_edge_side_t type
Definition: p8est_iterate.h:203
Definition: p8est_iterate.h:155
int8_t edge
which quadrant side the edge touches
Definition: p8est_iterate.h:157
int8_t orientation
the orientation of each quadrant relative to this edge, as in the definition of p8est_connectivity_t
Definition: p8est_iterate.h:159
int8_t is_hanging
boolean: one full quad (0) or two smaller quads (1)
Definition: p8est_iterate.h:163
p4est_topidx_t treeid
the tree on this side
Definition: p8est_iterate.h:156
The information that is available to the user-defined p8est_iter_face_t callback.
Definition: p8est_iterate.h:114
int8_t orientation
the orientation of the sides to each other, as in the definition of p8est_connectivity_t
Definition: p8est_iterate.h:117
int8_t tree_boundary
boolean: interior face (0), tree boundary face (true)
Definition: p8est_iterate.h:120
Information about one side of a face in the forest.
Definition: p8est_iterate.h:73
int8_t face
which quadrant side the face touches
Definition: p8est_iterate.h:75
p4est_topidx_t treeid
the tree on this side
Definition: p8est_iterate.h:74
int8_t is_hanging
boolean: one full quad (0) or four smaller quads (1)
Definition: p8est_iterate.h:77
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:68
The p8est forest datatype.
Definition: p8est.h:132
Definition: p8est_iterate.h:166
struct p8est_iter_edge_side::p8est_iter_edge_side_data::@21 hanging
if is_hanging = 1, use is.hanging to access per-quadrant data
p8est_quadrant_t * quad
the actual quadrant
Definition: p8est_iterate.h:170
p4est_locidx_t quadid
index in tree or ghost array
Definition: p8est_iterate.h:171
struct p8est_iter_edge_side::p8est_iter_edge_side_data::@20 full
if is_hanging = 0, use is.full to access per-quadrant data
int8_t is_ghost
boolean: local (0) or ghost (1)
Definition: p8est_iterate.h:169
Definition: p8est_iterate.h:80
struct p8est_iter_face_side::p8est_iter_face_side_data::@18 full
if is_hanging = 0, use is.full to access per-quadrant data
p8est_quadrant_t * quad
the actual quadrant
Definition: p8est_iterate.h:84
int8_t is_ghost
boolean: local (0) or ghost (1)
Definition: p8est_iterate.h:83
struct p8est_iter_face_side::p8est_iter_face_side_data::@19 hanging
if is_hanging = 1, use is.hanging to access per-quadrant data
p4est_locidx_t quadid
index in tree or ghost array
Definition: p8est_iterate.h:85