We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ed769 commit ef8e8b6Copy full SHA for ef8e8b6
src/t8_schemes/t8_standalone/t8_standalone_implementation.hxx
@@ -652,15 +652,16 @@ struct t8_standalone_scheme
652
const int length = element_get_len (level);
653
T8_ASSERT (0 <= el->level && el->level <= T8_ELEMENT_MAXLEVEL[TEclass]);
654
655
- int cube_id = 0;
+ int cube_id = 0;
656
for (int idim = 0; idim < T8_ELEMENT_DIM[TEclass]; idim++) {
657
cube_id |= (el->coords[idim] & length) ? (1 << idim) : 0;
658
}
659
int child_id;
660
if constexpr (T8_ELEMENT_NUM_EQUATIONS[TEclass]) {
661
u_int8_t type = element_compute_type_at_level (el, level);
662
child_id = t8_element_type_cubeid_to_Iloc<TEclass>[type][cube_id];
663
- }else{
+ }
664
+ else {
665
child_id = cube_id;
666
667
return child_id;
0 commit comments