t8
1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
|
We use a p4est_quadrant_t object as storage for the T8 quadrant. More...
Go to the source code of this file.
Macros | |
#define | T8_QUAD_GET_TDIM(quad) ((int) (quad)->pad8) |
Return the toplevel dimension. | |
#define | T8_QUAD_GET_TNORMAL(quad) |
Return the direction of the third dimension. More... | |
#define | T8_QUAD_GET_TCOORD(quad) |
Return the coordinate in the third dimension. More... | |
#define | T8_QUAD_SET_TDIM(quad, dim) |
Set the toplevel dimension of a quadrilateral. More... | |
#define | T8_QUAD_SET_TNORMAL(quad, normal) |
Set the direction of the third demension. More... | |
#define | T8_QUAD_SET_TCOORD(quad, coord) do { (quad)->p.user_long = (long) (coord); } while (0) |
Set the coordinate in the third dimension. | |
Typedefs | |
typedef p4est_quadrant_t | t8_pquad_t |
The structure holding a quadrilateral element in the default scheme. More... | |
Functions | |
t8_eclass_scheme_t * | t8_default_scheme_new_quad (void) |
Provide an implementation for the quadrilateral element class. | |
We use a p4est_quadrant_t object as storage for the T8 quadrant.
To record if and if yes, how this quadrant is part of a 3D octant, we use the member pad8 for the surrounding toplevel dimension (2 or 3), pad16 for the direction of its normal relative to a toplevel octant (0, 1, or 2), and p.user_long for the p4est_qcoord_t coordinate in the normal direction.
#define T8_QUAD_GET_TCOORD | ( | quad | ) |
Return the coordinate in the third dimension.
This is only valid to call if the toplevel dimension is three.
#define T8_QUAD_GET_TNORMAL | ( | quad | ) |
Return the direction of the third dimension.
This is only valid to call if the toplevel dimension is three.
#define T8_QUAD_SET_TDIM | ( | quad, | |
dim | |||
) |
Set the toplevel dimension of a quadrilateral.
#define T8_QUAD_SET_TNORMAL | ( | quad, | |
normal | |||
) |
Set the direction of the third demension.
typedef p4est_quadrant_t t8_pquad_t |
The structure holding a quadrilateral element in the default scheme.
We make this definition public for interoperability of element classes. We might want to put this into a private, scheme-specific header file.