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
8
#include "
GenericIntegrationMethod.h
"
9
10
namespace
NumLib
11
{
14
struct
IntegrationOrder
15
{
16
explicit
IntegrationOrder
(
unsigned
const
order_) :
order
{order_} {}
17
18
unsigned
order
;
19
};
20
21
namespace
IntegrationMethodRegistry
22
{
25
GenericIntegrationMethod
const
&
getIntegrationMethod
(
26
std::type_index
const
mesh_element_type,
IntegrationOrder
const
order);
27
29
template
<
typename
MeshElement>
30
GenericIntegrationMethod
const
&
getIntegrationMethod
(
31
IntegrationOrder
const
order)
32
{
33
return
getIntegrationMethod
(std::type_index(
typeid
(MeshElement)), order);
34
}
35
}
// namespace IntegrationMethodRegistry
36
}
// namespace NumLib
GenericIntegrationMethod.h
NumLib::GenericIntegrationMethod
Definition
GenericIntegrationMethod.h:18
NumLib::IntegrationMethodRegistry
Definition
IntegrationMethodRegistry.cpp:169
NumLib::IntegrationMethodRegistry::getIntegrationMethod
GenericIntegrationMethod const & getIntegrationMethod(std::type_index const mesh_element_type, IntegrationOrder const order)
Definition
IntegrationMethodRegistry.cpp:170
NumLib
Definition
ProjectData.h:35
NumLib::IntegrationOrder
Definition
IntegrationMethodRegistry.h:15
NumLib::IntegrationOrder::order
unsigned order
Definition
IntegrationMethodRegistry.h:18
NumLib::IntegrationOrder::IntegrationOrder
IntegrationOrder(unsigned const order_)
Definition
IntegrationMethodRegistry.h:16
NumLib
Fem
Integration
IntegrationMethodRegistry.h
Generated by
1.14.0