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 pullback of double derivatives on Piola type elements #312

Merged
merged 8 commits into from
Oct 7, 2024
4 changes: 3 additions & 1 deletion ufl/algorithms/apply_derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
Imag,
Indexed,
IndexSum,
Jacobian,
JacobianDeterminant,
JacobianInverse,
ListTensor,
Product,
Expand Down Expand Up @@ -672,7 +674,7 @@ def reference_grad(self, o):
f = o.ufl_operands[0]

valid_operand = f._ufl_is_in_reference_frame_ or isinstance(
f, (JacobianInverse, SpatialCoordinate)
f, (JacobianInverse, SpatialCoordinate, Jacobian, JacobianDeterminant)
)
if not valid_operand:
raise ValueError("ReferenceGrad can only wrap a reference frame type!")
Expand Down
Loading