OGS
IntegrationPoint.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
7
8namespace NumLib
9{
15{
16public:
18 explicit IntegrationPoint(unsigned /* order */) {}
19
21 static void setIntegrationOrder(unsigned /* order */) {}
22
24 static constexpr unsigned getIntegrationOrder() { return 0; }
25
27 static constexpr unsigned getNumberOfPoints() { return 1; }
28
29 // clang-format off
31 // clang-format on
32 static MathLib::WeightedPoint getWeightedPoint(unsigned const igp)
33 {
35 }
36
37 // clang-format off
39 // clang-format on
40 static MathLib::WeightedPoint getWeightedPoint(unsigned const order, unsigned const igp)
41 {
42 (void)order;
43 (void)igp;
44 return MathLib::WeightedPoint(1);
45 }
46
47 template <typename Method>
49 {
50 return MathLib::WeightedPoint(1);
51 }
52
57 static constexpr unsigned getNumberOfPoints(unsigned order)
58 {
59 (void)order;
60 return 1;
61 }
62};
63} // namespace NumLib
static MathLib::WeightedPoint getWeightedPoint(unsigned)
IntegrationPoint(unsigned)
IntegrationPoint constructor for given order.
static constexpr unsigned getNumberOfPoints(unsigned order)
static MathLib::WeightedPoint getWeightedPoint(unsigned const order, unsigned const igp)
static constexpr unsigned getIntegrationOrder()
Return current integration order.
static void setIntegrationOrder(unsigned)
Change the integration order.
static MathLib::WeightedPoint getWeightedPoint(unsigned const igp)
static constexpr unsigned getNumberOfPoints()
Return the number of sampling points.