Skip to content

Commit c5e2676

Browse files
committed
Do not use type for hypercubes
1 parent 2fd0b6a commit c5e2676

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
@@ -2080,8 +2080,10 @@ struct t8_standalone_scheme
20802080

20812081
/**Check that we are in the correct cube*/
20822082
if (std::all_of (ancestor.coords.begin (), ancestor.coords.end (), [] (int coord) { return coord == 0; })) {
2083-
return ancestor.type == 0;
2084-
//TODO: root type
2083+
if constexpr (T8_ELEMENT_NUM_EQUATIONS[TEclass]) {
2084+
return ancestor.type == 0;
2085+
}
2086+
return 1;
20852087
}
20862088
else {
20872089
return 0;

0 commit comments

Comments
 (0)