int32_t p4est_topidx_t
Typedef for counting topological entities (trees, tree vertices).
Definition: p4est_base.h:93
The top-level 3D p8est interface.
void(* p8est_init_t)(p8est_t *p8est, p4est_topidx_t which_tree, p8est_quadrant_t *quadrant)
Callback function prototype to initialize the quadrant's user data.
Definition: p8est.h:199
p8est_t * p8est_build_complete(p8est_build_t *build)
Finalize the construction of the new forest after adding quadrants.
int p8est_build_add(p8est_build_t *build, p4est_topidx_t which_tree, p8est_quadrant_t *quadrant)
This function is usable from a p8est_search_local_t callback.
p8est_build_t * p8est_build_new(p8est_t *from, size_t data_size, p8est_init_t init_fn, void *user_pointer)
Allocate a context for building a new forest.
struct p8est_build p8est_build_t
Context object for building a new p4est from individual quadrants.
Definition: p8est_build.h:43
void p8est_build_init_add(p8est_build_t *build, p8est_init_t add_init_fn)
Set a dedicated initialization callback for manually added quadrants.
The 3D quadrant (i.e., octant) datatype.
Definition: p8est.h:68
The p8est forest datatype.
Definition: p8est.h:132