Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <cstddef>
7 :
8 : #include "DataStructures/ModalVector.hpp"
9 : #include "DataStructures/Tensor/TypeAliases.hpp"
10 : #include "NumericalAlgorithms/Spectral/Mesh.hpp"
11 :
12 : namespace Spectral {
13 :
14 : /*!
15 : * \brief Evaluate a Legendre series from the modal coefficients at a given
16 : * logical point using Clenshaw recurrence.
17 : */
18 : template <size_t Dim>
19 1 : double evaluate_legendre_series(
20 : const ModalVector& coefficients, const Mesh<Dim>& mesh,
21 : const tnsr::I<double, Dim, Frame::ElementLogical>& logical_coords);
22 :
23 : } // namespace Spectral
|