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.

18{
19 using namespace boost::mp11;
20
21 using MeshElement = typename ShapeFunction::MeshElement;
22
23 auto const& integration_method =
25 NumLib::IntegrationOrder{integration_order});
26
27 using ShapeMatrixPolicy =
29
30 // The reference element will be used as dummy argument below. That's
31 // sufficient, since we only want to compute the shape matrix N.
33
34 // dim does not matter, here.
35 constexpr int dim = 3;
37 ShapeMatrixPolicy,
38 dim,
40 reference_element.element,
41 false /*is_axially_symmetric*/,
42 integration_method);
43
44 return sms |
45 ranges::views::transform([](auto& sm) { return std::move(sm.N); }) |
46 ranges::to<std::vector>;
47}
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.