OGS
anonymous_namespace{ShapeMatrixCache.cpp} Namespace Reference

Functions

template<typename ShapeFunction>
static auto initShapeMatrices (unsigned const integration_order, boost::mp11::mp_identity< ShapeFunction >)

Function Documentation

◆ initShapeMatrices()

template<typename ShapeFunction>
auto anonymous_namespace{ShapeMatrixCache.cpp}::initShapeMatrices ( unsigned const integration_order,
boost::mp11::mp_identity< ShapeFunction >  )
static

Definition at line 15 of file ShapeMatrixCache.cpp.

17{
18 using namespace boost::mp11;
19
20 using MeshElement = typename ShapeFunction::MeshElement;
21
22 auto const& integration_method =
24 NumLib::IntegrationOrder{integration_order});
25
26 using ShapeMatrixPolicy =
28
29 // The reference element will be used as dummy argument below. That's
30 // sufficient, since we only want to compute the shape matrix N.
32
33 // dim does not matter, here.
34 constexpr int dim = 3;
36 ShapeMatrixPolicy,
37 dim,
39 reference_element.element,
40 false /*is_axially_symmetric*/,
41 integration_method);
42
43 return sms |
44 ranges::views::transform([](auto& sm) { return std::move(sm.N); }) |
45 ranges::to<std::vector>;
46}
MeshElementType const element
GenericIntegrationMethod const & getIntegrationMethod(std::type_index const mesh_element_type, IntegrationOrder const order)
ShapeMatrixPolicyType< ShapeFunction, 3 > GetShapeMatrixPolicy
std::vector< typename ShapeMatricesType::ShapeMatrices, Eigen::aligned_allocator< typename ShapeMatricesType::ShapeMatrices > > initShapeMatrices(MeshLib::Element const &e, bool const is_axially_symmetric, IntegrationMethod const &integration_method)

References NumLib::ReferenceElement< MeshElementType >::element, NumLib::IntegrationMethodRegistry::getIntegrationMethod(), NumLib::initShapeMatrices(), and NumLib::N.