Skip to content

Commit ae57747

Browse files
committed
Do not use type for hypercubes
1 parent ce0beda commit ae57747

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/t8_schemes/t8_standalone/t8_standalone_implementation.hxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,8 +2093,10 @@ struct t8_standalone_scheme
20932093

20942094
/**Check that we are in the correct cube*/
20952095
if (std::all_of (ancestor.coords.begin (), ancestor.coords.end (), [] (int coord) { return coord == 0; })) {
2096-
return ancestor.type == 0;
2097-
//TODO: root type
2096+
if constexpr (T8_ELEMENT_NUM_EQUATIONS[TEclass]) {
2097+
return ancestor.type == 0;
2098+
}
2099+
return 1;
20982100
}
20992101
else {
21002102
return 0;

0 commit comments

Comments
 (0)