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

Do not preset Patch::reference_cell. #12877

Merged
merged 1 commit into from Oct 27, 2021
Merged

Conversation

bangerth
Copy link
Member

While working on DataOutFaces, one of the underlying issues is that DataOutBase simply assumes that a patch for which nothing specific has been done is a hypercube. That's because Patch::reference_cell is initialized to be a hypercube, and derived classes do not specifically do anything about it then get routed down that patch whether or not that is the right thing to do. Derived classes don't generally do anything because the Patch::reference_cell member was only introduced in the last release.

This patch changes things by initializing the reference cell to an invalid value. Derived classes then have to set things explicitly, and if they don't, that'll lead to an error. I then fix this up in all places where it breaks a test (hopefully).

Because this also breaks the new (prematurely introduced) test for DataOutFaces and simplices, I'm cherry-picking the same patch as in #12859 that disables the test.

/rebuild

@Rombur
Copy link
Member

Rombur commented Oct 26, 2021

@bangerth
Copy link
Member Author

Should be fixed now!

@peterrum peterrum merged commit 418c219 into dealii:master Oct 27, 2021
@bangerth bangerth deleted the ref-cell-x branch October 28, 2021 03:17
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

4 participants