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