174 sc_array_t * exists_arr,
175 sc_array_t * rproc_arr,
176 sc_array_t * rquad_arr);
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
p4est_connect_type_t
Characterize a type of adjacency.
Definition: p4est_connectivity.h:113
passing quadrants and data to neighboring processes
A hybrid 2D+1D AMR extension.
int p6est_layer_exists(p6est_t *p6est, p6est_ghost_t *ghost, p4est_topidx_t treeid, const p4est_quadrant_t *column, const p2est_quadrant_t *layer, sc_array_t *exists_arr, sc_array_t *rproc_arr, sc_array_t *rquad_arr)
Checks if layer exists in the local forest or the ghost layer.
ssize_t p6est_ghost_bsearch(p6est_ghost_t *ghost, int which_proc, p4est_topidx_t which_tree, const p4est_quadrant_t *column, const p2est_quadrant_t *layer)
Conduct binary search for exact match on a range of the ghost layer.
int p6est_is_balanced(p6est_t *p6est, p8est_connect_type_t btype)
Check a forest to see if it is balanced.
void p6est_ghost_expand(p6est_t *p6est, p6est_ghost_t *ghost)
Expand the size of the ghost layer and mirrors by one additional layer of adjacency.
p6est_ghost_t * p6est_ghost_new(p6est_t *p4est, p4est_connect_type_t btype)
Builds the ghost layer.
unsigned p6est_ghost_checksum(p6est_t *p6est, p6est_ghost_t *ghost)
Compute the parallel checksum of a ghost layer.
void p6est_ghost_destroy(p6est_ghost_t *ghost)
Frees all memory used for the ghost layer.
size_t p6est_ghost_memory_used(p6est_ghost_t *ghost)
Calculate the memory usage of the ghost layer.
ssize_t p6est_ghost_contains(p6est_ghost_t *ghost, int which_proc, p4est_topidx_t which_tree, const p4est_quadrant_t *column, const p2est_quadrant_t *layer)
Conduct binary search for ancestor on range of the ghost layer.
struct p6est_ghost p6est_ghost_t
columns of layers that neighbor the local domain
p8est_connect_type_t
Characterize a type of adjacency.
Definition: p8est_connectivity.h:119
A 1D quadrant datatype: this is used to encode a "layer" of a column in the 2D+1D AMR scheme.
Definition: p6est.h:127
quadrants that neighbor the local domain
Definition: p4est_ghost.h:41
The 2D quadrant datatype.
Definition: p4est.h:72
The p4est forest datatype.
Definition: p4est.h:136
columns of layers that neighbor the local domain
Definition: p6est_ghost.h:42
sc_array_t ghosts
An array of column-layers which make up the ghost layer around p6est.
Definition: p6est_ghost.h:60
p4est_ghost_t * column_ghost
describes the ghost columns
Definition: p6est_ghost.h:47
p4est_locidx_t * proc_offsets
mpisize + 1 ghost indices
Definition: p6est_ghost.h:62
p4est_locidx_t * mirror_proc_fronts
like mirror_proc_mirrors, but limited to the outermost octants.
Definition: p6est_ghost.h:76
p4est_locidx_t * mirror_proc_front_offsets
NULL until p4est_ghost_expand is called.
Definition: p6est_ghost.h:82
p4est_locidx_t * tree_offsets
num_trees + 1 ghost indices
Definition: p6est_ghost.h:61
p4est_locidx_t * mirror_proc_offsets
mpisize + 1 indices into mirror_proc_mirrors
Definition: p6est_ghost.h:73
p4est_connect_type_t btype
which neighboring columns are in the ghost layer
Definition: p6est_ghost.h:45
p4est_locidx_t * mirror_proc_mirrors
indices into mirrors grouped by outside processor rank and ascending within each rank
Definition: p6est_ghost.h:70
sc_array_t mirrors
An array of local quadrants that touch the parallel boundary from the inside, i.e....
Definition: p6est_ghost.h:68
p4est_locidx_t * mirror_tree_offsets
num_trees + 1 mirror indices
Definition: p6est_ghost.h:69
sc_array_t * column_layer_offsets
array of p4est_locidx_t type: the offset of each ghost columns within the ghosts array of column-laye...
Definition: p6est_ghost.h:48
The p6est forest datatype.
Definition: p6est.h:165