OGS
IntegrationMethodRegistry.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <typeindex>
7
9
10namespace NumLib
11{
15{
16 explicit IntegrationOrder(unsigned const order_) : order{order_} {}
17
18 unsigned order;
19};
20
22{
26 std::type_index const mesh_element_type, IntegrationOrder const order);
27
29template <typename MeshElement>
31 IntegrationOrder const order)
32{
33 return getIntegrationMethod(std::type_index(typeid(MeshElement)), order);
34}
35} // namespace IntegrationMethodRegistry
36} // namespace NumLib
GenericIntegrationMethod const & getIntegrationMethod(std::type_index const mesh_element_type, IntegrationOrder const order)
IntegrationOrder(unsigned const order_)