template <int dim>
double
- FourierSineFunction<dim>::laplacian(const Point<dim> &p,
- const unsigned int component) const
+ FourierSineFunction<dim>::laplacian(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
return (fourier_coefficients * fourier_coefficients) *
(-std::sin(fourier_coefficients * p));
template <int dim>
double
- FourierSineSum<dim>::value(const Point<dim> &p,
- const unsigned int component) const
+ FourierSineSum<dim>::value(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
const unsigned int n = weights.size();
template <int dim>
Tensor<1, dim>
- FourierSineSum<dim>::gradient(const Point<dim> &p,
- const unsigned int component) const
+ FourierSineSum<dim>::gradient(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
const unsigned int n = weights.size();
template <int dim>
double
- FourierSineSum<dim>::laplacian(const Point<dim> &p,
- const unsigned int component) const
+ FourierSineSum<dim>::laplacian(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
const unsigned int n = weights.size();
template <int dim>
double
- FourierCosineSum<dim>::value(const Point<dim> &p,
- const unsigned int component) const
+ FourierCosineSum<dim>::value(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
const unsigned int n = weights.size();
template <int dim>
Tensor<1, dim>
- FourierCosineSum<dim>::gradient(const Point<dim> &p,
- const unsigned int component) const
+ FourierCosineSum<dim>::gradient(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
const unsigned int n = weights.size();
template <int dim>
double
- FourierCosineSum<dim>::laplacian(const Point<dim> &p,
- const unsigned int component) const
+ FourierCosineSum<dim>::laplacian(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
const unsigned int n = weights.size();
template <int dim, typename Number>
Number
- Monomial<dim, Number>::value(const Point<dim> &p,
- const unsigned int component) const
+ Monomial<dim, Number>::value(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, this->n_components);
Number prod = 1;
template <int dim, typename Number>
Tensor<1, dim, Number>
- Monomial<dim, Number>::gradient(const Point<dim> &p,
- const unsigned int component) const
+ Monomial<dim, Number>::gradient(
+ const Point<dim> &p,
+ [[maybe_unused]] const unsigned int component) const
{
- (void)component;
AssertIndexRange(component, 1);
Tensor<1, dim> r;