t8  UNKNOWN
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_dhex.h
Go to the documentation of this file.
1 /*
2  This file is part of t8code.
3  t8code is a C library to manage a collection (a forest) of multiple
4  connected adaptive space-trees of general element classes in parallel.
5 
6  Copyright (C) 2015 the developers
7 
8  t8code is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  t8code is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with t8code; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef T8_DHEX_H
24 #define T8_DHEX_H
25 
30 #include <t8.h>
31 
33 #define T8_DHEX_CHILDREN 8
34 
36 #define T8_DHEX_FACES 6
37 
39 #define T8_DHEX_VERTICES 8
40 
42 #define T8_DHEX_FACE_CHILDREN 4
43 
45 #define T8_DHEX_MAXLEVEL 21
46 
48 #define T8_DHEX_ROOT_LEN (1 << (T8_DHEX_MAXLEVEL))
49 
51 #define T8_DHEX_LEN(l) (1 << (T8_DHEX_MAXLEVEL - (l)))
52 
53 typedef int32_t t8_dhex_coord_t;
54 
55 typedef struct t8_dhex
56 {
57  int8_t level;
58  t8_dhex_coord_t x;
59  t8_dhex_coord_t y;
60  t8_dhex_coord_t z;
61 } t8_dhex_t;
62 
63 #endif /* T8_DHEX_H */
Definition: t8_dhex.h:56
t8_dhex_coord_t x
The x integer coordinate of the anchor node.
Definition: t8_dhex.h:58
t8_dhex_coord_t y
The y integer coordinate of the anchor node.
Definition: t8_dhex.h:59
t8_dhex_coord_t z
The z integer coordinate of the anchor node.
Definition: t8_dhex.h:60
This is the administrative header file for t8code.