116p6est_lnodes_decode (p6est_lnodes_code_t face_code,
int hanging_face[6],
117 int hanging_edge[12])
119 P4EST_ASSERT (face_code >= 0);
128 int16_t h = (face_code & 0x0010) >> 4;
129 int16_t work = face_code >> 5;
133 memset (hanging_face, -1, 6 *
sizeof (
int));
134 memset (hanging_edge, -1, 12 *
sizeof (
int));
138 p4est_lnodes_decode (fc4, hanging_face + 2);
139 for (f = 0; f < 4; f++) {
140 hf = hanging_face[f + 2];
150 hanging_face[f + 2] = (hf << 1) | h;
153 hanging_face[f + 2] = 4 + hf;
162 hanging_face[f + 2] = 6 + h;
166 for (e = 0; e < 4; e++) {
168 if (hanging_edge[e] < 0) {
171#ifdef P4EST_ENABLE_DEBUG
173 P4EST_ASSERT (hanging_edge[e] == 2 + h || hanging_edge[e] == 4);
217p6est_lnodes_share_owned_begin (sc_array_t * node_data,
238p6est_lnodes_share_owned (sc_array_t * node_data,
p6est_lnodes_t * lnodes)
260p6est_lnodes_share_all_begin (sc_array_t * node_data,
p6est_lnodes_t * lnodes)
283p6est_lnodes_share_all (sc_array_t * node_data,
p6est_lnodes_t * lnodes)
298p6est_lnodes_rank_array_index_int (sc_array_t * array,
int it)
305p6est_lnodes_rank_array_index (sc_array_t * array,
size_t it)
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
Generate Lobatto node numbers for any degree.
int8_t p4est_lnodes_code_t
The face code encodes the configuration of a hanging quadrant.
Definition p4est_lnodes.h:44
passing columns of layers and data to neighboring processes
const int p8est_face_edges[6][4]
Store the edge numbers 0..12 for each tree face.
Generate Lobatto node numbers for any degree.
int16_t p8est_lnodes_code_t
The face code encodes the configuration of a hanging quadrant.
Definition p8est_lnodes.h:46
void p8est_lnodes_share_owned(sc_array_t *node_data, p8est_lnodes_t *lnodes)
Equivalent to calling p8est_lnodes_share_owned_end directly after p8est_lnodes_share_owned_begin.
void p8est_lnodes_destroy(p8est_lnodes_t *lnodes)
Free all memory in a previously constructed lnodes structure.
void p8est_lnodes_share_all_end(p8est_lnodes_buffer_t *buffer)
p8est_lnodes_shared_all_end
p8est_lnodes_rank_t * p8est_lnodes_rank_array_index_int(sc_array_t *array, int it)
Return a pointer to a lnodes_rank array element indexed by a int.
Definition p8est_lnodes.h:457
p8est_lnodes_buffer_t * p8est_lnodes_share_owned_begin(sc_array_t *node_data, p8est_lnodes_t *lnodes)
p8est_lnodes_share_owned_begin
void p8est_lnodes_buffer_destroy(p8est_lnodes_buffer_t *buffer)
Destroy the buffer filled with node data during a call to p8est_lnodes_share_all_end or p8est_lnodes_...
void p8est_lnodes_share_owned_end(p8est_lnodes_buffer_t *buffer)
p8est_lnodes_shared_owned_end
p8est_lnodes_buffer_t * p8est_lnodes_share_all_begin(sc_array_t *node_data, p8est_lnodes_t *lnodes)
p8est_lnodes_share_all_begin
p4est_gloidx_t p8est_lnodes_global_index(p8est_lnodes_t *lnodes, p4est_locidx_t lidx)
Compute the global number of a local node number.
Definition p8est_lnodes.h:480
p8est_lnodes_buffer_t * p8est_lnodes_share_all(sc_array_t *node_data, p8est_lnodes_t *lnodes)
Equivalent to calling p8est_lnodes_share_all_end directly after p8est_lnodes_share_all_begin.
p8est_lnodes_rank_t * p8est_lnodes_rank_array_index(sc_array_t *array, size_t it)
Return a pointer to a lnodes_rank array element indexed by a size_t.
Definition p8est_lnodes.h:469
columns of layers that neighbor the local domain
Definition p6est_ghost.h:42
The p6est forest datatype.
Definition p6est.h:167
p8est_lnodes_buffer_t handles the communication of data associated with nodes.
Definition p8est_lnodes.h:373
The structure stored in the sharers array.
Definition p8est_lnodes.h:161
Store a parallel numbering of Lobatto points of a given degree > 0.
Definition p8est_lnodes.h:127