t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_dpyramid.h
Go to the documentation of this file.
1 #ifndef T8_DPYRAMID_H
2 #define T8_DPYRAMID_H
3 
8 #include <t8.h>
10 
12 #define T8_DPYRAMID_CHILDREN 10
13 
15 #define T8_DPYRAMID_FACES 5
16 
18 #define T8_DPYRAMID_FACE_CHILDREN 4
19 
21 #define T8_DPYRAMID_CORNERS 5
22 
24 /*The tetrahedral elements are linked with pyra-elements*/
25 #define T8_DPYRAMID_MAXLEVEL 21
26 
28 #define T8_DPYRAMID_ROOT_LEN (1 << (T8_DPYRAMID_MAXLEVEL))
29 
31 #define T8_DPYRAMID_LEN(l) (1 << (T8_DPYRAMID_MAXLEVEL- (l)))
32 
34 #define T8_DPYRAMID_NUM_TYPES 8
35 
37 #define T8_DPYRAMID_ROOT_TPYE 6
38 
40 #define T8_DPYRAMID_FIRST_TYPE 6
41 
43 #define T8_DPYRAMID_SECOND_TYPE 7
44 
47 #define T8_DTRI_ROOT_BY_DPYRAMID_ROOT (1 <<(T8_DTRI_MAXLEVEL - T8_DPYRAMID_MAXLEVEL))
48 
50 typedef int32_t t8_dpyramid_coord_t;
51 
56 typedef int8_t t8_dpyramid_type_t;
57 
64 typedef struct t8_dpyramid
65 {
66  t8_dtet_t pyramid; /* Coordinates, level and type */
67  int8_t switch_shape_at_level;
68 }
70 
71 #endif /* T8_DPYRAMID_H */
This data type stores a pyramid.
Definition: t8_dpyramid.h:65
This data type stores a tetrahedron.
Definition: t8_dtet.h:71
This is the administrative header file for t8code.
int32_t t8_dpyramid_coord_t
The coordinates of a pyramid are integers relative to the maximum refinement.
Definition: t8_dpyramid.h:50
int8_t t8_dpyramid_type_t
The type of pyramid in 0, ...,7.
Definition: t8_dpyramid.h:56
struct t8_dpyramid t8_dpyramid_t
This data type stores a pyramid.
TODO: document this.