OGS
anonymous_namespace{IntegrationGaussLegendrePrism.cpp} Namespace Reference

Functions

template<int OrderGaussLegendreTri, int OrderGaussLegendre>
constexpr unsigned getNumberOfPointsConcrete ()
template<int OrderGaussLegendreTri, int OrderGaussLegendre>
MathLib::WeightedPoint getWeightedPointConcrete (unsigned const igp)

Function Documentation

◆ getNumberOfPointsConcrete()

template<int OrderGaussLegendreTri, int OrderGaussLegendre>
unsigned anonymous_namespace{IntegrationGaussLegendrePrism.cpp}::getNumberOfPointsConcrete ( )
constexpr

Definition at line 13 of file IntegrationGaussLegendrePrism.cpp.

14{
16 OrderGaussLegendre;
17}
static MATHLIB_EXPORT const unsigned NPoints

References MathLib::GaussLegendreTri< ORDER >::NPoints.

Referenced by getWeightedPointConcrete().

◆ getWeightedPointConcrete()

template<int OrderGaussLegendreTri, int OrderGaussLegendre>
MathLib::WeightedPoint anonymous_namespace{IntegrationGaussLegendrePrism.cpp}::getWeightedPointConcrete ( unsigned const igp)

Definition at line 20 of file IntegrationGaussLegendrePrism.cpp.

21{
24
25 assert(igp < (getNumberOfPointsConcrete<OrderGaussLegendreTri,
26 OrderGaussLegendre>()));
27
28 const unsigned gp_r = igp % GLT::NPoints;
29 const unsigned gp_t = igp / GLT::NPoints;
30
31 std::array<double, 3> rst{GLT::X[gp_r][0], GLT::X[gp_r][1], GL::X[gp_t]};
32
33 double const weight = GLT::W[gp_r] * 0.5 * GL::W[gp_t];
34
35 return MathLib::WeightedPoint(rst, weight);
36}

References getNumberOfPointsConcrete().