-
Notifications
You must be signed in to change notification settings - Fork 160
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
BUG: CellDiameter on extruded meshes no longer works #3612
Comments
This is very curious. I have looked at the commits for TSFC and UFL in the last year and none of them seem to touch |
My guess is FEniCS/ufl#197 That probably changed the implemented of |
Spot on @wence-, thanks! For an extruded mesh we have This might well be a simple fix. Looking at where |
Nah, |
That implementation is, however, probably wrong because it should probably say |
OK. Do you have any suggestion for what the right thing is to do here? Should |
I think in apply_geometry_lowering the check for Q1 cells needs to be reinstated. So it does something like:
I don't know exactly how to check for Q1, but notice that previously the check was (pseudo-code)
But now the check is:
|
I believe that |
This looks like a mistake in the UFL changes last year. The test for geometry lowering is using the embedded_superdegree but it should be using the embedded_subdegree. The reason subdegree is right is that you care about whether the edges are straight, not whether there are any quadratic functions on the interior. |
The reason subdegree is right is that you care about whether the edges are straight, not whether there are any quadratic functions on the interior. See firedrakeproject/firedrake#3612.
Fixed in FEniCS/ufl#295 (though we also need to update our UFL fork). |
The reason subdegree is right is that you care about whether the edges are straight, not whether there are any quadratic functions on the interior. See firedrakeproject/firedrake#3612.
The reason subdegree is right is that you care about whether the edges are straight, not whether there are any quadratic functions on the interior. See firedrakeproject/firedrake#3612. Co-authored-by: Matthew Scroggs <[email protected]>
The following code
produces the following error
This does seem to work on an older Firedrake installation (about Jul '23).
The text was updated successfully, but these errors were encountered: