SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/Burgers/Subcell - ComputeFluxes.hpp Coverage Total Hit
Commit: 0d1d717af84a81fb1284a20c4013708fe85cc2f0 Lines: 66.7 % 3 2
Test Date: 2026-10-22 17:29:42
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 "DataStructures/Variables.hpp"
       7              : #include "Evolution/Systems/Burgers/Fluxes.hpp"
       8              : #include "Utilities/Gsl.hpp"
       9              : #include "Utilities/TMPL.hpp"
      10              : 
      11            1 : namespace Burgers::subcell {
      12              : namespace detail {
      13              : /*!
      14              :  * \brief Helper function that calls `Burgers::Fluxes::apply` by
      15              :  * retrieving the return and argument tags from the Variables object `vars`.
      16              :  */
      17              : template <typename TagsList, typename... ReturnTags, typename... ArgumentTags>
      18              : void compute_fluxes_impl(const gsl::not_null<Variables<TagsList>*> vars,
      19              :                          tmpl::list<ReturnTags...> /*meta*/,
      20              :                          tmpl::list<ArgumentTags...> /*meta*/) {
      21              :   Fluxes::apply(make_not_null(&get<ReturnTags>(*vars))...,
      22              :                 get<ArgumentTags>(*vars)...);
      23              : }
      24              : }  // namespace detail
      25              : 
      26              : /*!
      27              :  * \brief Compute fluxes for subcell variables.
      28              :  */
      29              : template <typename TagsList>
      30            1 : void compute_fluxes(const gsl::not_null<Variables<TagsList>*> vars) {
      31              :   detail::compute_fluxes_impl(vars, typename Fluxes::return_tags{},
      32              :                               typename Fluxes::argument_tags{});
      33              : }
      34              : }  // namespace Burgers::subcell
        

Generated by: LCOV version 2.0-1