From: Crystal Farris Date: Wed, 14 Aug 2024 23:11:05 +0000 (-0500) Subject: Addressed comments X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=476ab93549c33fb235f1ba4fe844fc8d6e89e35c;p=dealii.git Addressed comments --- diff --git a/source/base/function_lib.cc b/source/base/function_lib.cc index 5698cfd282..2e9138080a 100644 --- a/source/base/function_lib.cc +++ b/source/base/function_lib.cc @@ -1938,9 +1938,8 @@ namespace Functions template double - FourierCosineFunction::value( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierCosineFunction::value(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); return std::cos(fourier_coefficients * p); @@ -1950,9 +1949,8 @@ namespace Functions template Tensor<1, dim> - FourierCosineFunction::gradient( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierCosineFunction::gradient(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); return -fourier_coefficients * std::sin(fourier_coefficients * p); @@ -1962,9 +1960,8 @@ namespace Functions template double - FourierCosineFunction::laplacian( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierCosineFunction::laplacian(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); return (fourier_coefficients * fourier_coefficients) * @@ -1988,9 +1985,8 @@ namespace Functions template double - FourierSineFunction::value( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierSineFunction::value(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); return std::sin(fourier_coefficients * p); @@ -2000,9 +1996,8 @@ namespace Functions template Tensor<1, dim> - FourierSineFunction::gradient( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierSineFunction::gradient(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); return fourier_coefficients * std::cos(fourier_coefficients * p); @@ -2012,9 +2007,8 @@ namespace Functions template double - FourierSineFunction::laplacian( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierSineFunction::laplacian(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); return (fourier_coefficients * fourier_coefficients) * @@ -2044,9 +2038,8 @@ namespace Functions template double - FourierSineSum::value( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierSineSum::value(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2062,9 +2055,8 @@ namespace Functions template Tensor<1, dim> - FourierSineSum::gradient( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierSineSum::gradient(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2080,9 +2072,8 @@ namespace Functions template double - FourierSineSum::laplacian( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierSineSum::laplacian(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2118,9 +2109,8 @@ namespace Functions template double - FourierCosineSum::value( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierCosineSum::value(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2136,9 +2126,8 @@ namespace Functions template Tensor<1, dim> - FourierCosineSum::gradient( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierCosineSum::gradient(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2154,9 +2143,8 @@ namespace Functions template double - FourierCosineSum::laplacian( - const Point &p, - [[maybe_unused]] const unsigned int component) const + FourierCosineSum::laplacian(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2186,9 +2174,8 @@ namespace Functions template Number - Monomial::value( - const Point &p, - [[maybe_unused]] const unsigned int component) const + Monomial::value(const Point &p, + const unsigned int component) const { AssertIndexRange(component, this->n_components); @@ -2222,9 +2209,8 @@ namespace Functions template Tensor<1, dim, Number> - Monomial::gradient( - const Point &p, - [[maybe_unused]] const unsigned int component) const + Monomial::gradient(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2603,8 +2589,8 @@ namespace Functions template double InterpolatedTensorProductGridData::value( - const Point &p, - [[maybe_unused]] const unsigned int component) const + const Point &p, + const unsigned int component) const { Assert( component == 0, @@ -2633,8 +2619,8 @@ namespace Functions template Tensor<1, dim> InterpolatedTensorProductGridData::gradient( - const Point &p, - [[maybe_unused]] const unsigned int component) const + const Point &p, + const unsigned int component) const { Assert( component == 0, @@ -2710,9 +2696,8 @@ namespace Functions template double - InterpolatedUniformGridData::value( - const Point &p, - [[maybe_unused]] const unsigned int component) const + InterpolatedUniformGridData::value(const Point &p, + const unsigned int component) const { Assert( component == 0, @@ -2759,9 +2744,8 @@ namespace Functions template Tensor<1, dim> - InterpolatedUniformGridData::gradient( - const Point &p, - [[maybe_unused]] const unsigned int component) const + InterpolatedUniformGridData::gradient(const Point &p, + const unsigned int component) const { Assert( component == 0, @@ -2848,8 +2832,8 @@ namespace Functions template double - Polynomial::value(const Point &p, - [[maybe_unused]] const unsigned int component) const + Polynomial::value(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1); @@ -2889,8 +2873,8 @@ namespace Functions template Tensor<1, dim> - Polynomial::gradient(const Point &p, - [[maybe_unused]] const unsigned int component) const + Polynomial::gradient(const Point &p, + const unsigned int component) const { AssertIndexRange(component, 1);