diff --git a/src/t8_geometry/t8_geometry_implementations/t8_geometry_examples.hxx b/src/t8_geometry/t8_geometry_implementations/t8_geometry_examples.hxx index 34aa2e98c4..e748c81960 100644 --- a/src/t8_geometry/t8_geometry_implementations/t8_geometry_examples.hxx +++ b/src/t8_geometry/t8_geometry_implementations/t8_geometry_examples.hxx @@ -96,9 +96,9 @@ struct t8_geometry_quadrangulated_disk: public t8_geometry_with_vertices t8_productionf ("t8_geometry_quadrangulated_disk is not compatible with tree type %s\n" "It is only compatible with quad elements.\n", t8_eclass_to_string[active_tree_class]); - return true; + return false; } - return false; + return true; } /* Load tree data is inherited from t8_geometry_with_vertices. */ @@ -155,9 +155,9 @@ struct t8_geometry_triangulated_spherical_surface: public t8_geometry_with_verti t8_productionf ("t8_geometry_triangulated_spherical_surface is not compatible with tree type %s\n" "It is only compatible with triangle elements.\n", t8_eclass_to_string[active_tree_class]); - return true; + return false; } - return false; + return true; } /* Load tree data is inherited from t8_geometry_with_vertices. */ @@ -209,12 +209,14 @@ struct t8_geometry_tessellated_spherical_surface: public t8_geometry_with_vertic bool t8_geom_check_tree_compatibility () const { - if (active_tree_class != T8_ECLASS_QUAD) { - t8_productionf ("t8_geometry_quadrangulated_spherical_surface is not compatible with tree type %s\n" - "It is only compatible with quad elements.\n", - t8_eclass_to_string[active_tree_class]); + if (active_tree_class == T8_ECLASS_TRIANGLE || active_tree_class == T8_ECLASS_QUAD) { return true; } + + t8_productionf ("t8_geometry_tessellated_spherical_surface is not compatible with tree type %s\n" + "It is only compatible with triangle and quad elements.\n", + t8_eclass_to_string[active_tree_class]); + return false; } @@ -271,9 +273,9 @@ struct t8_geometry_cubed_spherical_shell: public t8_geometry_with_vertices t8_productionf ("t8_geometry_cubed_spherical_shell is not compatible with tree type %s\n" "It is only compatible with hex elements.\n", t8_eclass_to_string[active_tree_class]); - return true; + return false; } - return false; + return true; } /* Load tree data is inherited from t8_geometry_with_vertices. */ @@ -329,9 +331,9 @@ struct t8_geometry_prismed_spherical_shell: public t8_geometry_with_vertices t8_productionf ("t8_geometry_prismed_spherical_shell is not compatible with tree type %s\n" "It is only compatible with prism elements.\n", t8_eclass_to_string[active_tree_class]); - return true; + return false; } - return false; + return true; } /* Load tree data is inherited from t8_geometry_with_vertices. */ @@ -387,9 +389,9 @@ struct t8_geometry_cubed_sphere: public t8_geometry_with_vertices t8_productionf ("t8_geometry_cubed_sphere is not compatible with tree type %s\n" "It is only compatible with hex elements.\n", t8_eclass_to_string[active_tree_class]); - return true; + return false; } - return false; + return true; } /* Load tree data is inherited from t8_geometry_with_vertices. */