PFASST++
gauss_legendre.hpp
Go to the documentation of this file.
1 
5 #ifndef _PFASST__QUADRATURE__GAUSS_LEGENDRE_HPP_
6 #define _PFASST__QUADRATURE__GAUSS_LEGENDRE_HPP_
7 
9 
10 
11 namespace pfasst
12 {
13  namespace quadrature
14  {
22  template<typename precision = pfasst::time_precision>
24  : public IQuadrature<precision>
25  {
26  protected:
28  static const bool LEFT_IS_NODE = false;
29  static const bool RIGHT_IS_NODE = false;
31 
32  public:
34  explicit GaussLegendre(const size_t num_nodes);
35  GaussLegendre() = default;
36  virtual ~GaussLegendre() = default;
38 
40  virtual bool left_is_node() const override;
41  virtual bool right_is_node() const override;
43 
44  protected:
46  virtual void compute_nodes() override;
48  };
49  } // ::pfasst::quadrature
50 } // ::pfasst
51 
53 
54 #endif // _PFASST__QUADRATURE__GAUSS_LEGENDRE_HPP_
Interface for quadrature handlers.
Definition: interface.hpp:232
virtual bool left_is_node() const override
Quadrature handler for Gauss-Legendre quadrature.
virtual bool right_is_node() const override