Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong return value when checking tree geometry compat. #1285

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -213,9 +213,9 @@ struct t8_geometry_tessellated_spherical_surface: public t8_geometry_with_vertic
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]);
return true;
return false;
}
return false;
return true;
}

/* Load tree data is inherited from t8_geometry_with_vertices. */
Expand Down Expand Up @@ -271,9 +271,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. */
Expand Down Expand Up @@ -329,9 +329,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. */
Expand Down Expand Up @@ -387,9 +387,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. */
Expand Down