WaveBlocksND
quadrature_rule.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include "../types.hpp"
6 
7 
8 namespace waveblocks {
9  namespace innerproducts {
10 
17  {
18  const size_t order;
19  const std::vector<real_t> nodes;
20  const std::vector<real_t> weights;
21 
22  QuadratureRule(const size_t order,
23  const std::vector<real_t>& nodes,
24  const std::vector<real_t>& weights)
25  : order(order), nodes(nodes), weights(weights)
26  {}
27  };
28  }
29 }
Definition: coefficients_file_parser.cpp:10
const size_t order
Definition: quadrature_rule.hpp:18
const std::vector< real_t > nodes
Definition: quadrature_rule.hpp:19
Node and weight values for a 1D quadrature rule.
Definition: quadrature_rule.hpp:16
QuadratureRule(const size_t order, const std::vector< real_t > &nodes, const std::vector< real_t > &weights)
Definition: quadrature_rule.hpp:22
const std::vector< real_t > weights
Definition: quadrature_rule.hpp:20