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 "NumericalAlgorithms/Spectral/Basis.hpp" 9 : #include "NumericalAlgorithms/Spectral/Quadrature.hpp" 10 : 11 : /// \cond 12 : template <size_t Dim> 13 : class Mesh; 14 : /// \endcond 15 : 16 : namespace evolution::dg::subcell::fd { 17 : /*! 18 : * \brief Computes the cell-centered finite-difference mesh from the DG mesh, 19 : * using \f$2N-1\f$ grid points per dimension, where \f$N\f$ is the degree of 20 : * the DG basis. 21 : */ 22 : template <size_t Dim> 23 1 : Mesh<Dim> mesh(const Mesh<Dim>& dg_mesh); 24 : 25 : /*! 26 : * \brief Computes the DG mesh from the cell-centered finite-difference mesh. 27 : */ 28 : template <size_t Dim> 29 1 : Mesh<Dim> dg_mesh(const Mesh<Dim>& subcell_mesh, Spectral::Basis basis, 30 : Spectral::Quadrature quadrature); 31 : } // namespace evolution::dg::subcell::fd