181 sc_array_t shared_nodes;
203 P4EST_ASSERT (face_code >= 0);
207 int8_t c = face_code & 0x03;
209 int8_t work = face_code >> 2;
211 memset (hanging_face, -1, 4 *
sizeof (
int));
213 for (i = 0; i < 2; ++i) {
214 f = p4est_corner_faces[c][i];
215 hanging_face[f] = (work & 0x01) ? p4est_corner_face_corners[c][f] : -1;
299 int partition_for_coarsening);
306 int nodes_per_volume,
308 int nodes_per_corner,
310 partition_for_coarsening);
328 sc_array_t *requests;
329 sc_array_t *send_buffers;
330 sc_array_t *recv_buffers;
365void p4est_lnodes_share_owned (sc_array_t * node_data,
412p4est_lnodes_rank_array_index_int (sc_array_t *array,
int it)
415 P4EST_ASSERT (it >= 0 && (
size_t) it < array->elem_count);
424p4est_lnodes_rank_array_index (sc_array_t *array,
size_t it)
427 P4EST_ASSERT (it < array->elem_count);
438 P4EST_ASSERT (lidx >= 0 && lidx < lnodes->num_local_nodes);
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
Passing quadrants and data to neighboring processes.
struct p4est_lnodes_rank p4est_lnodes_rank_t
The structure stored in the sharers array.
struct p4est_lnodes p4est_lnodes_t
Store a parallel numbering of Lobatto points of a given degree > 0.
struct p4est_lnodes_buffer p4est_lnodes_buffer_t
p4est_lnodes_buffer_t handles the communication of data associated with nodes.
const int p4est_lnodes_corner_hanging[4]
For each corner, the normal direction of the hanging face.
int8_t p4est_lnodes_code_t
The face code encodes the configuration of a hanging quadrant.
Definition p4est_lnodes.h:44
Quadrants that neighbor the local domain.
Definition p4est_ghost.h:46
p4est_lnodes_buffer_t handles the communication of data associated with nodes.
Definition p4est_lnodes.h:327
The structure stored in the sharers array.
Definition p4est_lnodes.h:179
Store a parallel numbering of Lobatto points of a given degree > 0.
Definition p4est_lnodes.h:145
p4est_gloidx_t * nonlocal_nodes
For nonlocal nodes: global number.
Definition p4est_lnodes.h:150
p4est_lnodes_code_t * face_code
One entry per local element encoding its hanging situation.
Definition p4est_lnodes.h:161
p4est_locidx_t * global_owned_count
For each rank: owned count.
Definition p4est_lnodes.h:154
int degree
Degree used in construction.
Definition p4est_lnodes.h:156
p4est_gloidx_t global_offset
Global number of first local node.
Definition p4est_lnodes.h:149
p4est_locidx_t owned_count
Number of owned nodes of process.
Definition p4est_lnodes.h:148
sc_MPI_Comm mpicomm
Valid MPI communicator.
Definition p4est_lnodes.h:146
p4est_locidx_t num_local_nodes
Number of nodes known to process.
Definition p4est_lnodes.h:147
p4est_locidx_t * element_nodes
Flat list: element_nodes * vnodes.
Definition p4est_lnodes.h:163
sc_array_t * sharers
Encoding of sharer processes' nodes.
Definition p4est_lnodes.h:151
int vnodes
Number of nodes of each element.
Definition p4est_lnodes.h:159
p4est_locidx_t num_local_elements
Elements local to process.
Definition p4est_lnodes.h:160
The p4est forest datatype.
Definition p4est.h:150