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

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/PDE/MultiMat/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 multimaterial compressible
       9                 :            :              hydrodynamics.
      10                 :            :   \details   Register available Riemann solvers for multimaterial compressible
      11                 :            :              hydrodynamics.
      12                 :            : */
      13                 :            : // *****************************************************************************
      14                 :            : #include "FunctionPrototypes.hpp"
      15                 :            : #include "Inciter/Options/Flux.hpp"
      16                 :            : #include "Riemann/HLLC.hpp"
      17                 :            : #include "Riemann/LaxFriedrichs.hpp"
      18                 :            : #include "Riemann/AUSMCompFlow.hpp"
      19                 :            : 
      20                 :            : namespace inciter {
      21                 :            : 
      22                 :            :   //! Get the Riemann solver function according to control file setup
      23                 :            :   //! \param[in] flux Riemann solver from input deck
      24                 :            :   //! \return Function pointer to the Riemann solver, must be of type
      25                 :            :   //!   tk::RiemannFluxFn
      26         [ +  + ]:        106 :   const static tk::RiemannFluxFn compflowRiemannSolver(ctr::FluxType flux)
      27                 :            :   {
      28                 :            :     tk::RiemannFluxFn fluxfn;
      29                 :            : 
      30         [ +  + ]:        106 :     if (flux == ctr::FluxType::HLLC) {
      31                 :        102 :       fluxfn = HLLC::flux;
      32                 :            :     }
      33         [ +  - ]:          4 :     else if (flux == ctr::FluxType::LaxFriedrichs) {
      34                 :          4 :       fluxfn = LaxFriedrichs::flux;
      35                 :            :     }
      36         [ -  - ]:          0 :     else if (flux == ctr::FluxType::AUSM) {
      37                 :          0 :       fluxfn = AUSMCompFlow::flux;
      38                 :            :     }
      39                 :            :     else {
      40 [ -  - ][ -  - ]:          0 :       Throw("Riemann solver not set up for compressible flow PDEs.");
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
      41                 :            :     }
      42                 :            : 
      43                 :        106 :     return fluxfn;
      44                 :            :   }
      45                 :            : 
      46                 :            : } // inciter::

Generated by: LCOV version 1.14