p4est
1.0
|
#include <p8est_trilinear.h>
Data Fields | |
int32_t | face_neighbor_eid [6][4] |
The face neighbors are ordered in -x, +x, -y, +y, -z, and +z directions.
For each direction, the neighbor(s) may be:
1. Out of the domain.
face_neighbor_eid[direction][0] = -1. face_neighbor_eid[direction][1--3] = -1.
2. As large or twice as large as the current element:
face_neighbor_eid[direction][0] = index
where ((index >= 0) && (index < local_elem_num)) if the neighbor is LOCAL, or ((index >= local_elem_num) && (index < (local_elem_num + phantom_elem_num))) if the neighor is REMOTE.
face_neighbor_eid[direction][1--3] = -1.
3. Half as large as the current element:
face_neighbor_eid[direction][i] = index
where index is defined as above. Note that in this case all four neighbors (half as large) must exist.