Function t8_element_shape_compare(t8_element_shape_t, t8_element_shape_t)
Defined in File t8_element_shape.c
Function Documentation
-
int t8_element_shape_compare(t8_element_shape_t element_shape1, t8_element_shape_t element_shape2)
Compare two element_shapes of the same dimension as necessary for face neighbor orientation. The implemented order is Triangle < Square in 2D and Tet < Hex < Prism < Pyramid in 3D.
- Parameters:
element_shape1 – [in] The first element_shape to compare.
element_shape2 – [in] The second element_shape to compare.
- Returns:
0 if the element_shapes are equal, 1 if element_shape1 > element_shape2 and -1 if element_shape1 < element_shape2