SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/ScalarWave - Equations.hpp Hit Total Coverage
Commit: b1342d46f40e2d46bbd11d0cef68fd973031a24b Lines: 2 7 28.6 %
Date: 2020-09-24 20:24: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 <cstddef>
       7             : 
       8             : #include "DataStructures/Tensor/TypeAliases.hpp"
       9             : #include "Evolution/Systems/ScalarWave/Tags.hpp"
      10             : #include "Utilities/ForceInline.hpp"
      11             : #include "Utilities/TMPL.hpp"
      12             : 
      13             : /// \cond
      14             : class DataVector;
      15             : 
      16             : namespace gsl {
      17             : template <typename T>
      18             : class not_null;
      19             : }  // namespace gsl
      20             : /// \endcond
      21             : 
      22             : // IWYU pragma: no_forward_declare Tensor
      23             : 
      24             : namespace ScalarWave {
      25             : /*!
      26             :  * \brief A relic of an old incorrect way of handling boundaries for
      27             :  * non-conservative systems.
      28             :  */
      29             : template <size_t Dim>
      30           1 : struct ComputeNormalDotFluxes {
      31           0 :   using argument_tags = tmpl::list<Pi>;
      32           0 :   static void apply(gsl::not_null<Scalar<DataVector>*> pi_normal_dot_flux,
      33             :                     gsl::not_null<tnsr::i<DataVector, Dim, Frame::Inertial>*>
      34             :                         phi_normal_dot_flux,
      35             :                     gsl::not_null<Scalar<DataVector>*> psi_normal_dot_flux,
      36             :                     const Scalar<DataVector>& pi) noexcept;
      37             : };
      38             : 
      39             : /// Compute the maximum magnitude of the characteristic speeds.
      40           1 : struct ComputeLargestCharacteristicSpeed {
      41           0 :   using argument_tags = tmpl::list<>;
      42           0 :   SPECTRE_ALWAYS_INLINE static constexpr double apply() noexcept { return 1.0; }
      43             : };
      44             : }  // namespace ScalarWave

Generated by: LCOV version 1.14