You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When constructing a VectorElement based from a scalar FiniteElement, the quadrature scheme of that element is dropped.
This is not the case for TensorElement, although one would expect the same behavior for both types.
The reason lies in the call to FiniteElementBase.__init__ in line 298 of ufl/finiteelement/mixedelement.py, which sets quad_scheme to None if it is not given explicitly. This call is not present in the constructor of TensorElement.
The text was updated successfully, but these errors were encountered:
* removed probably unneeded troublesome lines in VectorElement
The removed code overwrites some properties for whatever reason,
in particular, quad_scheme.
In TensorElement these two lines were not there at all.
* added back FiniteElementBase constructor but (re)use sub-element data properly
Note: the call to FiniteElementBase.__init__ overrides some properties set by the MixedElement
constructor. Essentially the same seems to be done in TensorElement, but more explicitly.
---------
Co-authored-by: rambausek <[email protected]>
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
Co-authored-by: Matthew Scroggs <[email protected]>
When constructing a VectorElement based from a scalar FiniteElement, the quadrature scheme of that element is dropped.
This is not the case for TensorElement, although one would expect the same behavior for both types.
The reason lies in the call to
FiniteElementBase.__init__
in line 298 ofufl/finiteelement/mixedelement.py
, which setsquad_scheme
toNone
if it is not given explicitly. This call is not present in the constructor ofTensorElement
.The text was updated successfully, but these errors were encountered: