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) \
50 ( T8_ASSERT (T8_QUAD_GET_TDIM(quad) == 3), \
51 ((int) (quad)->pad16) )
56 #define T8_QUAD_GET_TCOORD(quad) \
57 ( T8_ASSERT (T8_QUAD_GET_TDIM(quad) == 3), \
58 ((int) (quad)->p.user_long) )
61 #define T8_QUAD_SET_TDIM(quad,dim) \
62 do { T8_ASSERT ((dim) == 2 || (dim) == 3); \
63 (quad)->pad8 = (int8_t) (dim); } while (0)
66 #define T8_QUAD_SET_TNORMAL(quad,normal) \
67 do { T8_ASSERT ((normal) >= 0 && (normal) < 3); \
68 (quad)->pad16 = (int16_t) (normal); } while (0)
71 #define T8_QUAD_SET_TCOORD(quad,coord) \
72 do { (quad)->p.user_long = (long) (coord); } while (0)
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.