ProjectionTestHelpers.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 #include <cstddef>
7 
9 
10 /// \cond
11 class DataVector;
12 template <size_t Dim>
13 class Index;
14 template <size_t Dim>
15 class Mesh;
16 /// \endcond
17 
18 namespace TestHelpers::evolution::dg::subcell {
19 // computes a simple polynomial over the grid that we then project and
20 // reconstruct in the tests.
21 template <size_t Dim, typename Fr>
22 DataVector cell_values(size_t max_polynomial_degree_plus_one,
23  const tnsr::I<DataVector, Dim, Fr>& coords) noexcept;
24 
25 // Computes the average in each finite volume cell multiplied by the cell's
26 // volume.
27 template <size_t Dim>
28 DataVector cell_averages_times_volume(
29  size_t max_polynomial_degree_plus_one,
30  const Index<Dim>& subcell_extents) noexcept;
31 } // namespace TestHelpers::evolution::dg::subcell
Index
Definition: Index.hpp:31
cstddef
DataVector
Stores a collection of function values.
Definition: DataVector.hpp:46
Mesh
Holds the number of grid points, basis, and quadrature in each direction of the computational grid.
Definition: Mesh.hpp:49
TypeAliases.hpp