OGS
IntegrationPoint.h
Go to the documentation of this file.
1
11#pragma once
12
14
15namespace NumLib
16{
22{
23public:
25 explicit IntegrationPoint(unsigned /* order */) {}
26
28 static void setIntegrationOrder(unsigned /* order */) {}
29
31 static constexpr unsigned getIntegrationOrder() { return 0; }
32
34 static constexpr unsigned getNumberOfPoints() { return 1; }
35
36 // clang-format off
38 // clang-format on
39 static MathLib::WeightedPoint getWeightedPoint(unsigned const igp)
40 {
42 }
43
44 // clang-format off
46 // clang-format on
47 static MathLib::WeightedPoint getWeightedPoint(unsigned const order, unsigned const igp)
48 {
49 (void)order;
50 (void)igp;
51 return MathLib::WeightedPoint(1);
52 }
53
54 template <typename Method>
56 {
57 return MathLib::WeightedPoint(1);
58 }
59
64 static constexpr unsigned getNumberOfPoints(unsigned order)
65 {
66 (void)order;
67 return 1;
68 }
69};
70} // 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.