Quinoa all test code coverage report
Current view: top level - PDE/MultiSpecies - RiemannChoice.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 0 5 0.0 %
Date: 2024-11-08 10:37:44 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 16 0.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/PDE/MultiSpecies/RiemannChoice.hpp
       4                 :            :   \copyright 2012-2015 J. Bakosi,
       5                 :            :              2016-2018 Los Alamos National Security, LLC.,
       6                 :            :              2019-2021 Triad National Security, LLC.
       7                 :            :              All rights reserved. See the LICENSE file for details.
       8                 :            :   \brief     Register available Riemann solvers for multi-species compressible
       9                 :            :              fluid dynamics.
      10                 :            :   \details   Register available Riemann solvers for multi-species compressible
      11                 :            :              fluid dynamics.
      12                 :            : */
      13                 :            : // *****************************************************************************
      14                 :            : #ifndef RiemannChoice_h
      15                 :            : #define RiemannChoice_h
      16                 :            : 
      17                 :            : #include "FunctionPrototypes.hpp"
      18                 :            : #include "Inciter/Options/Flux.hpp"
      19                 :            : #include "Riemann/AUSMMultiSpecies.hpp"
      20                 :            : 
      21                 :            : namespace inciter {
      22                 :            : 
      23                 :            :   //! Get the Riemann solver function according to control file setup
      24                 :            :   //! \param[in] flux Riemann solver from input deck
      25                 :            :   //! \return Function pointer to the Riemann solver, must be of type
      26                 :            :   //!   tk::RiemannFluxFn
      27         [ -  - ]:          0 :   const static tk::RiemannFluxFn multispeciesRiemannSolver(ctr::FluxType flux)
      28                 :            :   {
      29                 :            :     tk::RiemannFluxFn fluxfn;
      30                 :            : 
      31         [ -  - ]:          0 :     if (flux == ctr::FluxType::AUSM) {
      32                 :          0 :       fluxfn = AUSMMultiSpecies::flux;
      33                 :            :     }
      34                 :            :     else {
      35 [ -  - ][ -  - ]:          0 :       Throw("Riemann solver not set up for multi-material PDEs.");
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
      36                 :            :     }
      37                 :            : 
      38                 :          0 :     return fluxfn;
      39                 :            :   }
      40                 :            : 
      41                 :            : } // inciter::
      42                 :            : 
      43                 :            : #endif // RiemannChoice_h

Generated by: LCOV version 1.14