From: Wolfgang Bangerth Date: Sat, 6 Jan 2024 22:27:16 +0000 (-0700) Subject: Fix variable name. X-Git-Tag: relicensing~195^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16421%2Fhead;p=dealii.git Fix variable name. --- diff --git a/include/deal.II/base/polynomials_barycentric.h b/include/deal.II/base/polynomials_barycentric.h index accc4ffb21..b716510a73 100644 --- a/include/deal.II/base/polynomials_barycentric.h +++ b/include/deal.II/base/polynomials_barycentric.h @@ -198,7 +198,7 @@ protected: Table coefficients; /** - * Utility function for barycentric polynomials - its convenient to loop + * Utility function for barycentric polynomials: it is convenient to loop * over all the indices at once in a dimension-independent way, but we also * need to access the actual indices of the underlying Table object. This * utility function converts an integral index into the equivalent @@ -207,7 +207,7 @@ protected: */ static TableIndices index_to_indices(const std::size_t &index, - const TableIndices &extent); + const TableIndices &extents); }; /** @@ -695,6 +695,8 @@ BarycentricPolynomial::value(const Point &point) const return result; } + + template std::size_t BarycentricPolynomial::memory_consumption() const @@ -702,11 +704,13 @@ BarycentricPolynomial::memory_consumption() const return coefficients.memory_consumption(); } + + template TableIndices BarycentricPolynomial::index_to_indices( const std::size_t &index, - const TableIndices &extent) + const TableIndices &extents) { TableIndices result; auto temp = index; @@ -715,13 +719,15 @@ BarycentricPolynomial::index_to_indices( { std::size_t slice_size = 1; for (unsigned int n2 = n + 1; n2 < dim + 1; ++n2) - slice_size *= extent[n2]; + slice_size *= extents[n2]; result[n] = temp / slice_size; temp %= slice_size; } return result; } + + template const BarycentricPolynomial & BarycentricPolynomials::operator[](const std::size_t i) const