SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/NewtonianEuler/FiniteDifference - ReconstructWork.hpp Hit Total Coverage
Commit: 3f09028930c0450a2fb61ee918b22882f5d03d2b Lines: 2 3 66.7 %
Date: 2021-10-22 20:52:16
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #pragma once
       5             : 
       6             : #include <array>
       7             : #include <boost/functional/hash.hpp>
       8             : #include <cstddef>
       9             : #include <utility>
      10             : 
      11             : #include "DataStructures/FixedHashMap.hpp"
      12             : #include "Domain/Structure/MaxNumberOfNeighbors.hpp"
      13             : 
      14             : /// \cond
      15             : template <typename TagsList>
      16             : class Variables;
      17             : namespace gsl {
      18             : template <typename>
      19             : class not_null;
      20             : }  // namespace gsl
      21             : template <size_t Dim>
      22             : class Direction;
      23             : template <size_t Dim>
      24             : class ElementId;
      25             : template <size_t Dim>
      26             : class Element;
      27             : template <size_t Dim>
      28             : class Mesh;
      29             : namespace evolution::dg::subcell {
      30             : class NeighborData;
      31             : }  // namespace evolution::dg::subcell
      32             : namespace EquationsOfState {
      33             : template <bool IsRelativistic, size_t ThermodynamicDim>
      34             : class EquationOfState;
      35             : }  // namespace EquationsOfState
      36             : /// \endcond
      37             : 
      38             : namespace NewtonianEuler::fd {
      39             : /*!
      40             :  * \brief Reconstructs the mass density, velocity, and pressure, then computes
      41             :  * the specific internal energy and conserved variables. All results are written
      42             :  * into `vars_on_lower_face` and `vars_on_upper_face`.
      43             :  */
      44             : template <typename PrimsTags, typename TagsList, size_t Dim,
      45             :           size_t ThermodynamicDim, typename F>
      46           1 : void reconstruct_prims_work(
      47             :     gsl::not_null<std::array<Variables<TagsList>, Dim>*> vars_on_lower_face,
      48             :     gsl::not_null<std::array<Variables<TagsList>, Dim>*> vars_on_upper_face,
      49             :     const F& reconstruct, const Variables<PrimsTags>& volume_prims,
      50             :     const EquationsOfState::EquationOfState<false, ThermodynamicDim>& eos,
      51             :     const Element<Dim>& element,
      52             :     const FixedHashMap<maximum_number_of_neighbors(Dim) + 1,
      53             :                        std::pair<Direction<Dim>, ElementId<Dim>>,
      54             :                        evolution::dg::subcell::NeighborData,
      55             :                        boost::hash<std::pair<Direction<Dim>, ElementId<Dim>>>>
      56             :         neighbor_data,
      57             :     const Mesh<Dim>& subcell_mesh, size_t ghost_zone_size);
      58             : 
      59             : /*!
      60             :  * \brief Reconstructs the mass density, velocity, and pressure, then computes
      61             :  * the specific internal energy and conserved variables. All results are written
      62             :  * into `vars_on_face`.
      63             :  *
      64             :  * This is used on DG elements to reconstruct their subcell neighbors' solution
      65             :  * on the shared faces.
      66             :  */
      67             : template <typename TagsList, typename PrimsTags, size_t Dim,
      68             :           size_t ThermodynamicDim, typename F0, typename F1>
      69           1 : void reconstruct_fd_neighbor_work(
      70             :     gsl::not_null<Variables<TagsList>*> vars_on_face,
      71             :     const F0& reconstruct_lower_neighbor, const F1& reconstruct_upper_neighbor,
      72             :     const Variables<PrimsTags>& subcell_volume_prims,
      73             :     const EquationsOfState::EquationOfState<false, ThermodynamicDim>& eos,
      74             :     const Element<Dim>& element,
      75             :     const FixedHashMap<maximum_number_of_neighbors(Dim) + 1,
      76             :                        std::pair<Direction<Dim>, ElementId<Dim>>,
      77             :                        evolution::dg::subcell::NeighborData,
      78             :                        boost::hash<std::pair<Direction<Dim>, ElementId<Dim>>>>
      79             :         neighbor_data,
      80             :     const Mesh<Dim>& subcell_mesh,
      81             :     const Direction<Dim>& direction_to_reconstruct, size_t ghost_zone_size);
      82             : }  // namespace NewtonianEuler::fd

Generated by: LCOV version 1.14