SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/ScalarAdvection - Characteristics.hpp Coverage Total Hit
Commit: 0d1d717af84a81fb1284a20c4013708fe85cc2f0 Lines: 28.6 % 7 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/DataVector.hpp"
       7              : #include "Evolution/Systems/ScalarAdvection/Tags.hpp"
       8              : #include "Utilities/Gsl.hpp"
       9              : #include "Utilities/TMPL.hpp"
      10              : 
      11              : namespace ScalarAdvection {
      12            1 : namespace Tags {
      13              : /*!
      14              :  * \brief Compute the largest characteristic speed of the ScalarAdvection system
      15              :  *
      16              :  * \f{align*}
      17              :  * \lambda_\text{maxabs} = \sqrt{v^iv_i}
      18              :  * \f}
      19              :  *
      20              :  * where \f$v^i\f$ is the velocity field.
      21              :  */
      22              : template <size_t Dim>
      23            1 : struct LargestCharacteristicSpeedCompute : LargestCharacteristicSpeed,
      24              :                                            db::ComputeTag {
      25            0 :   using argument_tags = tmpl::list<Tags::VelocityField<Dim>>;
      26            0 :   using return_type = double;
      27            0 :   using base = LargestCharacteristicSpeed;
      28            0 :   static void function(const gsl::not_null<double*> speed,
      29              :                        const tnsr::I<DataVector, Dim>& velocity_field);
      30              : };
      31              : }  // namespace Tags
      32              : }  // namespace ScalarAdvection
        

Generated by: LCOV version 2.0-1