31 #ifndef T8_DEFAULT_QUAD_H
32 #define T8_DEFAULT_QUAD_H
44 #define T8_QUAD_GET_TDIM(quad) ((int) (quad)->pad8)
49 #define T8_QUAD_GET_TNORMAL(quad) (T8_ASSERT (T8_QUAD_GET_TDIM (quad) == 3), ((int) (quad)->pad16))
54 #define T8_QUAD_GET_TCOORD(quad) (T8_ASSERT (T8_QUAD_GET_TDIM (quad) == 3), ((int) (quad)->p.user_long))
57 #define T8_QUAD_SET_TDIM(quad, dim) \
59 T8_ASSERT ((dim) == 2 || (dim) == 3); \
60 (quad)->pad8 = (int8_t) (dim); \
64 #define T8_QUAD_SET_TNORMAL(quad, normal) \
66 T8_ASSERT ((normal) >= 0 && (normal) < 3); \
67 (quad)->pad16 = (int16_t) (normal); \
71 #define T8_QUAD_SET_TCOORD(quad, coord) \
73 (quad)->p.user_long = (long) (coord); \
p4est_quadrant_t t8_pquad_t
The structure holding a quadrilateral element in the default scheme.
Definition: t8_default_quad.h:41
t8_eclass_scheme_t * t8_default_scheme_new_quad(void)
Provide an implementation for the quadrilateral element class.
This file defines basic operations on an element in a refinement tree.