41#include <sc_refcount.h>
47typedef enum p4est_wrap_flags
50 P4EST_WRAP_REFINE = 0x01,
51 P4EST_WRAP_COARSEN = 0x02
133 uint8_t *flags, *temp_flags;
181 p4est_replace_t replace_fn,
219 int initial_level,
int hollow,
221 p4est_replace_t replace_fn,
255 p4est_replace_t replace_fn,
264p4est_wrap_t *p4est_wrap_new_periodic (sc_MPI_Comm mpicomm,
266p4est_wrap_t *p4est_wrap_new_rotwrap (sc_MPI_Comm mpicomm,
268p4est_wrap_t *p4est_wrap_new_corner (sc_MPI_Comm mpicomm,
270p4est_wrap_t *p4est_wrap_new_pillow (sc_MPI_Comm mpicomm,
272p4est_wrap_t *p4est_wrap_new_moebius (sc_MPI_Comm mpicomm,
283 int bx,
int by,
int px,
int py,
337 int partition_for_coarsening);
418 unchanged_old_first);
444 double upperright[3];
456#define P4EST_LEAF_IS_FIRST_IN_TREE(wleaf) ((wleaf)->which_quad == 0)
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
p4est_connect_type_t
Characterize a type of adjacency.
Definition p4est_connectivity.h:113
Interface routines with extended capabilities.
p4est_wrap_t * p4est_wrap_new_unitsquare(sc_MPI_Comm mpicomm, int initial_level)
Create a p4est_wrap and internal helper data structures.
p4est_wrap_t * p4est_wrap_new_disk(sc_MPI_Comm mpicomm, int px, int py, int initial_level)
Create a five-tree setup suitable to build a 2D disk.
struct p4est_wrap p4est_wrap_t
Wrapping a p4est object for an alternative API.
This structure holds the 2D inter-tree connectivity information.
Definition p4est_connectivity.h:190
Quadrants that neighbor the local domain.
Definition p4est_ghost.h:46
This structure contains the different parameters of mesh creation.
Definition p4est_mesh.h:55
This structure contains complete mesh information on a 2:1 balanced forest.
Definition p4est_mesh.h:130
The 2D quadrant datatype.
Definition p4est.h:76
The p4est tree datatype.
Definition p4est.h:129
Definition p4est_wrap.h:431
p4est_locidx_t local_quad
Quadrant number relative to proc.
Definition p4est_wrap.h:437
p4est_locidx_t nm
Internal: mirror counter.
Definition p4est_wrap.h:450
p4est_locidx_t which_quad
Quadrant number relative to tree.
Definition p4est_wrap.h:436
p4est_tree_t * tree
Current tree.
Definition p4est_wrap.h:438
p4est_topidx_t which_tree
Current tree number.
Definition p4est_wrap.h:435
sc_array_t * mirrors
If not NULL, from pp's ghost.
Definition p4est_wrap.h:449
int is_mirror
Quadrant at parallel boundary?
Definition p4est_wrap.h:448
p4est_locidx_t next_mirror_quadrant
Internal: next.
Definition p4est_wrap.h:451
p4est_wrap_t * pp
Must contain a valid ghost.
Definition p4est_wrap.h:432
p4est_quadrant_t * quad
Current quadrant.
Definition p4est_wrap.h:440
sc_array_t * tquadrants
Current tree's quadrants.
Definition p4est_wrap.h:439
This structure contains the different parameters of wrap creation.
Definition p4est_wrap.h:59
int coarsen_affect
Boolean: If true, we delay coarsening not only after refinement, but also between subsequent coarseni...
Definition p4est_wrap.h:75
int hollow
Do not allocate flags, ghost, and mesh members.
Definition p4est_wrap.h:60
int coarsen_delay
Non-negative integer telling how many adaptations to wait before any given quadrant may be coarsened ...
Definition p4est_wrap.h:71
p4est_mesh_params_t mesh_params
Parameters for mesh creation.
Definition p4est_wrap.h:62
p4est_replace_t replace_fn
This member may be removed soon.
Definition p4est_wrap.h:65
void * user_pointer
Set the user pointer in the p4est_wrap.
Definition p4est_wrap.h:88
int partition_for_coarsening
If true, the partition is modified to allow one level of coarsening when calling p4est_wrap_partition...
Definition p4est_wrap.h:79
int store_adapted
Boolean: If true, the indices of most recently adapted quadrants are stored in the newly_refined and ...
Definition p4est_wrap.h:83
Wrapping a p4est object for an alternative API.
Definition p4est_wrap.h:97
p4est_t * p4est
p4est->user_pointer is used internally
Definition p4est_wrap.h:115
sc_array_t * newly_refined
Indices of quadrants refined during most recent p4est_wrap_adapt.
Definition p4est_wrap.h:126
sc_array_t * newly_coarsened
Indices of quadrants coarsened during most recent p4est_wrap_adapt.
Definition p4est_wrap.h:128
sc_refcount_t conn_rc
This reference counter is a workaround for internal use only.
Definition p4est_wrap.h:106
The p4est forest datatype.
Definition p4est.h:150