FourierCosineFunction<dim>::value(const Point<dim> &p,
const unsigned int component) const
{
- (void)component;
+ [[maybe_unused]]component;
AssertIndexRange(component, 1);
return std::cos(fourier_coefficients * p);
}
FourierCosineFunction<dim>::gradient(const Point<dim> &p,
const unsigned int component) const
{
- (void)component;
+ [[maybe_unused]]component;
AssertIndexRange(component, 1);
return -fourier_coefficients * std::sin(fourier_coefficients * p);
}
FourierCosineFunction<dim>::laplacian(const Point<dim> &p,
const unsigned int component) const
{
- (void)component;
+ [[maybe_unused]]component;
AssertIndexRange(component, 1);
return (fourier_coefficients * fourier_coefficients) *
(-std::cos(fourier_coefficients * p));
FourierSineFunction<dim>::value(const Point<dim> &p,
const unsigned int component) const
{
- (void)component;
+ [[maybe_unused]]component;
AssertIndexRange(component, 1);
return std::sin(fourier_coefficients * p);
}
FourierSineFunction<dim>::gradient(const Point<dim> &p,
const unsigned int component) const
{
- (void)component;
+ [[maybe_unused]]component;
AssertIndexRange(component, 1);
return fourier_coefficients * std::cos(fourier_coefficients * p);
}