32typedef int16_t p8est_lnodes_code_t;
123 p8est_lnodes_code_t *face_code;
142 sc_array_t shared_nodes;
203p8est_lnodes_decode (p8est_lnodes_code_t face_code,
int hanging_face[6],
204 int hanging_edge[12])
206 P4EST_ASSERT (face_code >= 0);
210 int16_t c = face_code & 0x0007;
214 int16_t work = face_code >> 3;
216 memset (hanging_face, -1, 6 *
sizeof (
int));
217 memset (hanging_edge, -1, 12 *
sizeof (
int));
220 for (i = 0; i < 3; ++i) {
224 for (j = 0; j < 4; j++) {
231 for (i = 0; i < 3; ++i) {
234 hanging_edge[e] = (hanging_edge[e] == -1) ? 0 : 2;
235 hanging_edge[e] += (int) (cwork & 0x0001);
265 int partition_for_coarsening);
272 int nodes_per_volume,
275 int nodes_per_corner,
277 partition_for_coarsening);
319 sc_array_t *requests;
320 sc_array_t *send_buffers;
321 sc_array_t *recv_buffers;
352void p8est_lnodes_share_owned (sc_array_t * node_data,
394p8est_lnodes_rank_array_index_int (sc_array_t * array,
int it)
397 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
407p8est_lnodes_rank_array_index (sc_array_t * array,
size_t it)
410 P4EST_ASSERT (it < array->elem_count);
422 P4EST_ASSERT (lidx >= 0 && lidx < lnodes->num_local_nodes);
424 return (lidx < owned) ? lnodes->global_offset + lidx :
425 lnodes->nonlocal_nodes[lidx - owned];
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
const int p8est_corner_faces[8][3]
Store the face numbers 0..5 for each tree corner.
const int p8est_face_edges[6][4]
Store the edge numbers 0..12 for each tree face.
const int p8est_corner_face_corners[8][6]
Store the face corner numbers for the faces touching a tree corner.
const int p8est_corner_edges[8][3]
Store the edge numbers 0..11 for each tree corner.
passing quadrants and data to neighboring processes
The p4est forest datatype.
Definition: p4est.h:136
quadrants that neighbor the local domain
Definition: p8est_ghost.h:41
p8est_lnodes_buffer_t handles the communication of data associated with nodes.
Definition: p8est_lnodes.h:318
The structure stored in the sharers array.
Definition: p8est_lnodes.h:140
Store a parallel numbering of Lobatto points of a given degree > 0.
Definition: p8est_lnodes.h:112
The p8est forest datatype.
Definition: p8est.h:132