t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_dtri_connectivity.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 
26 #ifndef T8_DTRI_CONNECTIVITY_H
27 #define T8_DTRI_CONNECTIVITY_H
28 
30 
31 T8_EXTERN_C_BEGIN ();
32 
34 #define T8_DTRI_DIM (2)
35 
37 extern const int t8_dtri_cid_type_to_parenttype[4][2];
38 
41 extern const int t8_dtri_type_of_child[2][4];
42 
45 extern const int t8_dtri_type_of_child_morton[2][4];
46 
48 extern const int t8_dtri_index_to_bey_number[2][4];
49 
54 extern const int t8_dtri_beyid_to_vertex[4];
55 
57 extern const int t8_dtri_type_cid_to_beyid[2][4];
58 
60 extern const int t8_dtri_parenttype_beyid_to_Iloc[2][4];
61 
63 extern const int t8_dtri_type_cid_to_Iloc[2][4];
64 
66 extern const int t8_dtri_parenttype_Iloc_to_type[2][4];
67 
69 extern const int t8_dtri_parenttype_Iloc_to_cid[2][4];
70 
72 extern const int t8_dtri_face_corner[3][2];
73 
75 extern const int t8_dtri_corner_face[3][2];
76 
77 T8_EXTERN_C_END ();
78 
79 #endif /* T8_DTRI_CONNECTIVITY_H */
TODO: document this.
const int t8_dtri_cid_type_to_parenttype[4][2]
Store the type of parent for each (cube-id,type) combination.
Definition: t8_dtri_connectivity.c:25
const int t8_dtri_index_to_bey_number[2][4]
Store the Bey child number for each (Parent type,Morton child number) combination.
Definition: t8_dtri_connectivity.c:48
const int t8_dtri_type_cid_to_Iloc[2][4]
Store the local index for each (type,cube-id) combination.
Definition: t8_dtri_connectivity.c:75
const int t8_dtri_type_of_child[2][4]
Store the type of child for each (type,child number) combination, where child number is the number in...
Definition: t8_dtri_connectivity.c:34
const int t8_dtri_type_of_child_morton[2][4]
Store the type of child for each (type,child number) combination, where child number is the number in...
Definition: t8_dtri_connectivity.c:41
const int t8_dtri_beyid_to_vertex[4]
The anchor node of a child of a triangle T is the convex combination of T's anchor node x_0 and anoth...
Definition: t8_dtri_connectivity.c:53
const int t8_dtri_parenttype_Iloc_to_cid[2][4]
Store the cube-id for each (parenttype,local Index) combination.
Definition: t8_dtri_connectivity.c:85
const int t8_dtri_parenttype_beyid_to_Iloc[2][4]
Store the local index for each (parenttype,Bey child number) combination.
Definition: t8_dtri_connectivity.c:70
const int t8_dtri_parenttype_Iloc_to_type[2][4]
Store the type for each (parenttype,local Index) combination.
Definition: t8_dtri_connectivity.c:80
const int t8_dtri_type_cid_to_beyid[2][4]
Store the Bey child number for each (type,cube-id) combination.
Definition: t8_dtri_connectivity.c:63
const int t8_dtri_corner_face[3][2]
Store the indices of the faces of each corner of a triangle.
Definition: t8_dtri_connectivity.c:96
const int t8_dtri_face_corner[3][2]
Store the indices of the corner of each face of a triangle.
Definition: t8_dtri_connectivity.c:90