The top-level 2D p4est interface.
void(* p4est_init_t)(p4est_t *p4est, p4est_topidx_t which_tree, p4est_quadrant_t *quadrant)
Callback function prototype to initialize the quadrant's user data.
Definition: p4est.h:203
int32_t p4est_topidx_t
Typedef for counting topological entities (trees, tree vertices).
Definition: p4est_base.h:93
p4est_t * p4est_build_complete(p4est_build_t *build)
Finalize the construction of the new forest after adding quadrants.
struct p4est_build p4est_build_t
Context object for building a new p4est from individual quadrants.
Definition: p4est_build.h:43
int p4est_build_add(p4est_build_t *build, p4est_topidx_t which_tree, p4est_quadrant_t *quadrant)
This function is usable from a p4est_search_local_t callback.
void p4est_build_init_add(p4est_build_t *build, p4est_init_t add_init_fn)
Set a dedicated initialization callback for manually added quadrants.
p4est_build_t * p4est_build_new(p4est_t *from, size_t data_size, p4est_init_t init_fn, void *user_pointer)
Allocate a context for building a new forest.
The 2D quadrant datatype.
Definition: p4est.h:72
The p4est forest datatype.
Definition: p4est.h:136