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

Minor updates to GridGenerator::hyper_cube_with_cylindrical_hole(). #15696

Merged
merged 3 commits into from Jul 14, 2023

Conversation

bangerth
Copy link
Member

No description provided.

@bangerth
Copy link
Member Author

I made the function more robust. As I discovered in #15689, the function breaks there because we now have different vertex numbers. This specific function relies on specific vertex numbering produced by creating a triangulation by another function. This patch changes things in such a way that we ask about geometric attributes of vertex locations, rather than their numbers.

@kronbichler
Copy link
Member

There are a few tests that complain, apparently because they expected a different order of the output:

	1840 - grid/grid_generator_04.debug (Failed)
	1935 - grid/grid_output_input.debug (Failed)
	1992 - grid/manifold_ids_on_boundary_01.debug (Failed)

@bangerth
Copy link
Member Author

The one failing check is the same old petsc_step-27 test that keeps failing elsewhere. We'll have to figure out what is happening with this test at some point...

@bangerth
Copy link
Member Author

Ping?

{
for (auto f : GeometryInfo<dim>::face_indices())
for (const unsigned int f : GeometryInfo<dim>::face_indices())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (const unsigned int f : GeometryInfo<dim>::face_indices())
for (const auto f : cell->face_indices())

You moved away from GeometryInfo above. We can also do it here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. It really doesn't matter here because the function only deals with hexes. But as a general rule, it's good to move away from GeometryInfo. So committed, patch pushed.

@kronbichler
Copy link
Member

Failing MPI test trilinos/solver_control_06 is unrelated.

@kronbichler kronbichler merged commit 1642fad into dealii:master Jul 14, 2023
14 of 15 checks passed
@bangerth bangerth deleted the gg branch July 14, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants