7 #ifndef cf3_mesh_gausslegendre_Quad_hpp
8 #define cf3_mesh_gausslegendre_Quad_hpp
16 namespace gausslegendre {
23 enum { nb_nodes =
P*
P };
24 enum { dimensionality = 2 };
43 static const LocalCoordsT& local_coordinates();
44 static const WeightsT& weights();
64 std::pair< std::vector<Real>, std::vector<Real> > qdr =
GaussLegendre(
P);
65 for (
Uint i=0; i<
P; ++i)
67 for (
Uint j=0; j<
P; ++j)
69 roots(j+P*i,
KSI) = qdr.first[i];
70 roots(j+P*i,
ETA) = qdr.first[j];
71 weights[j+P*i] = qdr.second[i] * qdr.second[j];
85 static const WeightsT w = GaussLegendreQuadrature::instance().weights;
94 static const LocalCoordsT loc_coord = GaussLegendreQuadrature::instance().roots;
104 #endif // cf3_mesh_gausslegendre_Quad_hpp
#define mesh_gausslegendre_API
static const WeightsT & weights()
static const GaussLegendreQuadrature & instance()
Base class to inherit shape function implementations from.
QuadratureBase< Quad_traits< P > >::LocalCoordsT roots
QuadratureBase< Quad_traits< P > >::WeightsT weights
Top-level namespace for coolfluid.
QuadratureBase< Quad_traits< P > >::LocalCoordsT LocalCoordsT
GaussLegendreQuadrature()
QuadratureBase< Quad_traits< P > >::WeightsT WeightsT
unsigned int Uint
typedef for unsigned int
#define P(a, b, c, d, k, s, t)
Fallback class if a concrete Quadrature doesn't implement a static function.
std::pair< std::vector< Real >, std::vector< Real > > GaussLegendre(const Uint polyorder)
static const LocalCoordsT & local_coordinates()