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

◆ getWeightedPointConcrete()

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

Definition at line 28 of file IntegrationGaussLegendrePrism.cpp.

29{
32
33 assert(igp < (getNumberOfPointsConcrete<OrderGaussLegendreTri,
34 OrderGaussLegendre>()));
35
36 const unsigned gp_r = igp % GLT::NPoints;
37 const unsigned gp_t = igp / GLT::NPoints;
38
39 std::array<double, 3> rst{GLT::X[gp_r][0], GLT::X[gp_r][1], GL::X[gp_t]};
40
41 double const weight = GLT::W[gp_r] * 0.5 * GL::W[gp_t];
42
43 return MathLib::WeightedPoint(rst, weight);
44}

References getNumberOfPointsConcrete().