Closed michalhabera closed 2 years ago
Following MWE produces True,
True
import ufl coord_el = ufl.VectorElement("CG", ufl.triangle, 2, dim=3) mesh = ufl.Mesh(coord_el) n = ufl.CellNormal(mesh) print(n.is_cellwise_constant())
which results in terms like grad(CellNormal) being incorrectly simplified to Zero.
grad(CellNormal)
Zero
Following MWE produces
True
,which results in terms like
grad(CellNormal)
being incorrectly simplified toZero
.