MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / CoordinateElement

Method CoordinateElement

cpp/dolfinx/fem/CoordinateElement.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17//-----------------------------------------------------------------------------
18template <std::floating_point T>
19CoordinateElement<T>::CoordinateElement(
20 std::shared_ptr<const basix::FiniteElement<T>> element)
21 : _element(std::move(element))
22{
23 int degree = _element->degree();
24 mesh::CellType cell = this->cell_shape();
25 _is_affine = mesh::is_simplex(cell) and degree == 1;
26}
27//-----------------------------------------------------------------------------
28template <std::floating_point T>
29CoordinateElement<T>::CoordinateElement(mesh::CellType celltype, int degree,

Callers

nothing calls this directly

Calls 2

cell_shapeMethod · 0.95
degreeMethod · 0.45

Tested by

no test coverage detected