183 int level,
int faces[],
184 int edges[],
int corners[]);
282 sc_array_t * points);
290 sc_array_t * points);
313 sc_array_t * quadrants,
314 sc_array_t * indices);
365 sc_array_t * points);
388 int pfirst,
int plast,
546 int pfirst,
int plast,
612 sc_array_t * points);
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
int64_t p4est_gloidx_t
Typedef for globally unique indexing of quadrants.
Definition: p4est_base.h:118
The top-level 3D p8est interface.
void p8est_search_partition(p8est_t *p4est, int call_post, p8est_search_partition_t quadrant_fn, p8est_search_partition_t point_fn, sc_array_t *points)
Traverse the global partition top-down.
p8est_quadrant_t * p8est_find_quadrant_cumulative(p8est_t *p8est, p4est_locidx_t cumulative_id, p4est_topidx_t *which_tree, p4est_locidx_t *quadrant_id)
Search a local quadrant by its cumulative number in the forest.
int32_t p8est_find_range_boundaries(p8est_quadrant_t *lq, p8est_quadrant_t *uq, int level, int faces[], int edges[], int corners[])
Find the boundary points touched by a range of quadrants.
void p8est_search_local(p8est_t *p4est, int call_post, p8est_search_local_t quadrant_fn, p8est_search_local_t point_fn, sc_array_t *points)
Search through the local part of a forest.
void p8est_search_partition_gfp(const p8est_quadrant_t *gfp, int nmemb, p4est_topidx_t num_trees, int call_post, void *user, p8est_search_partition_t quadrant_fn, p8est_search_partition_t point_fn, sc_array_t *points)
Traverse some given global partition top-down.
void p8est_split_array(sc_array_t *array, int level, size_t indices[])
Split an array of quadrants by the children of an ancestor.
void p8est_search(p8est_t *p4est, p8est_search_query_t quadrant_fn, p8est_search_query_t point_fn, sc_array_t *points)
This function is provided for backwards compatibility.
void p8est_find_partition(const int num_procs, p4est_gloidx_t *search_in, p4est_gloidx_t my_begin, p4est_gloidx_t my_end, p4est_gloidx_t *begin, p4est_gloidx_t *end)
Binary search in partition array.
int(* p8est_search_reorder_t)(p8est_t *p4est, sc_array_t *quadrants, sc_array_t *indices)
Callback function to query, reorder, and reduce a set of quadrants.
Definition: p8est_search.h:312
ssize_t p8est_find_lower_bound(sc_array_t *array, const p8est_quadrant_t *q, size_t guess)
Find the lowest position tq in a quadrant array such that tq >= q.
int(* p8est_search_all_t)(p8est_t *p8est, p4est_topidx_t which_tree, p8est_quadrant_t *quadrant, int pfirst, int plast, p4est_locidx_t local_num, void *point)
Callback function for the top-down search through the whole forest.
Definition: p8est_search.h:543
void p8est_search_all(p8est_t *p4est, int call_post, p8est_search_all_t quadrant_fn, p8est_search_all_t point_fn, sc_array_t *points)
Perform a top-down search on the whole forest.
int(* p8est_search_partition_t)(p8est_t *p4est, p4est_topidx_t which_tree, p8est_quadrant_t *quadrant, int pfirst, int plast, void *point)
Callback function for the partition recursion.
Definition: p8est_search.h:385
void p8est_search_partition_gfx(const p4est_gloidx_t *gfq, const p8est_quadrant_t *gfp, int nmemb, p4est_topidx_t num_trees, int call_post, void *user, p8est_search_partition_t quadrant_fn, p8est_search_partition_t point_fn, sc_array_t *points)
Traverse some given global partition top-down.
int(* p8est_search_local_t)(p8est_t *p4est, p4est_topidx_t which_tree, p8est_quadrant_t *quadrant, p4est_locidx_t local_num, void *point)
Callback function to query the match of a "point" with a quadrant.
Definition: p8est_search.h:211
ssize_t p8est_find_higher_bound(sc_array_t *array, const p8est_quadrant_t *q, size_t guess)
Find the highest position tq in a quadrant array such that tq <= q.
p8est_search_local_t p8est_search_query_t
This typedef is provided for backwards compatibility.
Definition: p8est_search.h:218
void p8est_search_reorder(p8est_t *p4est, int skip_levels, p8est_search_reorder_t reorder_fn, p8est_search_local_t pre_quadrant_fn, p8est_search_local_t post_quadrant_fn, p8est_search_local_t point_fn, sc_array_t *points)
Run a depth-first traversal, optionally filtering search points.
The p4est forest datatype.
Definition: p4est.h:136
The 3D quadrant (i.e., octant) datatype.
Definition: p8est.h:68
The p8est forest datatype.
Definition: p8est.h:132