Create a Lagrange CoordinateElement from a Basix finite element. Coordinate elements are typically used when creating meshes. Args: e: Basix finite element. Returns: A coordinate element.
(e: basix.finite_element.FiniteElement)
| 154 | |
| 155 | @coordinate_element.register(basix.finite_element.FiniteElement) |
| 156 | def _(e: basix.finite_element.FiniteElement) -> CoordinateElement: |
| 157 | """Create a Lagrange CoordinateElement from a Basix finite element. |
| 158 | |
| 159 | Coordinate elements are typically used when creating meshes. |
| 160 | |
| 161 | Args: |
| 162 | e: Basix finite element. |
| 163 | |
| 164 | Returns: |
| 165 | A coordinate element. |
| 166 | """ |
| 167 | try: |
| 168 | return CoordinateElement(_cpp.fem.CoordinateElement_float32(e._e)) |
| 169 | except TypeError: |
| 170 | return CoordinateElement(_cpp.fem.CoordinateElement_float64(e._e)) |
| 171 | |
| 172 | |
| 173 | class FiniteElement(Generic[Real]): |
nothing calls this directly
no test coverage detected