Skip to content

Commit 4627031

Browse files
committed
change type to uint8, compute ancestorid correctly
1 parent e46fa16 commit 4627031

2 files changed

Lines changed: 88 additions & 56 deletions

File tree

src/t8_schemes/t8_standalone/t8_standalone_elements.hxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ typedef uint8_t t8_element_level;
153153
typedef uint8_t t8_cube_id;
154154
typedef uint8_t t8_child_id;
155155

156-
template <t8_eclass TEclass>
157-
using t8_element_type = std::bitset<T8_ELEMENT_NUM_EQUATIONS[TEclass]>;
156+
//template <t8_eclass TEclass>
157+
//using t8_element_type = std::bitset<T8_ELEMENT_NUM_EQUATIONS[TEclass]>;
158+
//using t8_element_type = u_int8_t;
158159

159160
template <t8_eclass TEclass>
160161
using t8_element_coords = std::array<t8_element_coord, T8_ELEMENT_DIM[TEclass]>;
@@ -168,7 +169,7 @@ struct t8_standalone_element
168169
/** The refinement level of the element relative to the root at level 0. */
169170
t8_element_level level;
170171
/** Bit array: which inequality is fulfilled at which level. */
171-
t8_element_type<TEclass> type;
172+
u_int8_t type;
172173
};
173174

174175
#endif /* T8_STANDALONE_ELEMENTS_HXX */

0 commit comments

Comments
 (0)