9#define uint unsigned int
10#define scint static_cast<int>
23 "Implementation of a Gauss-Chebyshev quadrature");
40 const int param_count =
41 int(assigned_params.Has(
"order")) + int(assigned_params.Has(
"N"));
43 "Either \"order\" or \"N\" must be specified, not both");
45 if (assigned_params.Has(
"order"))
52 const uint N = assigned_params.GetParamValue<
uint>(
"N");
74 Chi::log.
Log() <<
"Initializing Gauss-Chebyshev Quadrature "
78 const double pi_N = M_PI / N;
79 for (
unsigned int n = 0; n < N; ++n)
81 const double xn = -std::cos((2 * n + 1) * pi_N / 2.0);
82 const double wn = pi_N;
#define ChiInvalidArgumentIf(condition, message)
LogStream Log(LOG_LVL level=LOG_0)
static chi::InputParameters GetInputParameters()
QuadratureGaussChebyshev(const chi::InputParameters ¶ms)
void Initialize(unsigned int N)
static chi::InputParameters GetInputParameters()
std::vector< chi_math::QuadraturePointXYZ > qpoints_
std::pair< double, double > range_
std::vector< double > weights_
RegisterChiObject(chi_math, QuadratureGaussChebyshev)