Skip to content

Commit 52e44fe

Browse files
committed
Only look at type when it is allowed to
1 parent 4d56ab3 commit 52e44fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/t8_schemes/t8_standalone/t8_standalone_implementation.hxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,12 @@ struct t8_standalone_scheme
380380
if (el1->coords[idim] != el2->coords[idim])
381381
return 0;
382382
}
383-
return el1->type == el2->type;
383+
if constexpr (T8_ELEMENT_NUM_EQUATIONS[TEclass]) {
384+
return el1->type == el2->type;
385+
}
386+
else {
387+
return 1;
388+
}
384389
}
385390

386391
// ################################################____ACCESSOR____################################################

0 commit comments

Comments
 (0)