Quinoa all test code coverage report
Current view: top level - PDE/MultiMat - RiemannChoice.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 6 13 46.2 %
Date: 2025-01-16 13:03:36 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 5 24 20.8 %

           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                 :            : #ifndef RiemannChoice_h
      15                 :            : #define RiemannChoice_h
      16                 :            : 
      17                 :            : #include "FunctionPrototypes.hpp"
      18                 :            : #include "Inciter/Options/Flux.hpp"
      19                 :            : #include "Riemann/HLL.hpp"
      20                 :            : #include "Riemann/AUSM.hpp"
      21                 :            : #include "Riemann/LaxFriedrichsSolids.hpp"
      22                 :            : #include "Riemann/HLLCMultiMat.hpp"
      23                 :            : #include "Riemann/LDFSS.hpp"
      24                 :            : 
      25                 :            : namespace inciter {
      26                 :            : 
      27                 :            :   //! Get the Riemann solver function according to control file setup
      28                 :            :   //! \param[in] flux Riemann solver from input deck
      29                 :            :   //! \return Function pointer to the Riemann solver, must be of type
      30                 :            :   //!   tk::RiemannFluxFn
      31         [ +  + ]:        194 :   const static tk::RiemannFluxFn multimatRiemannSolver(ctr::FluxType flux)
      32                 :            :   {
      33                 :            :     tk::RiemannFluxFn fluxfn;
      34                 :            : 
      35         [ +  + ]:        194 :     if (flux == ctr::FluxType::AUSM) {
      36                 :        190 :       fluxfn = AUSM::flux;
      37                 :            :     }
      38         [ +  - ]:          4 :     else if (flux == ctr::FluxType::HLL) {
      39                 :          4 :       fluxfn = HLL::flux;
      40                 :            :     }
      41         [ -  - ]:          0 :     else if (flux == ctr::FluxType::LaxFriedrichs) {
      42                 :          0 :       fluxfn = LaxFriedrichsSolids::flux;
      43                 :            :     }
      44         [ -  - ]:          0 :     else if (flux == ctr::FluxType::HLLC) {
      45                 :          0 :       fluxfn = HLLCMultiMat::flux;
      46                 :            :     }
      47         [ -  - ]:          0 :     else if (flux == ctr::FluxType::LDFSS) {
      48                 :          0 :       fluxfn = LDFSS::flux;
      49                 :            :     }
      50                 :            :     else {
      51 [ -  - ][ -  - ]:          0 :       Throw("Riemann solver not set up for multi-material PDEs.");
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
      52                 :            :     }
      53                 :            : 
      54                 :        194 :     return fluxfn;
      55                 :            :   }
      56                 :            : 
      57                 :            : } // inciter::
      58                 :            : 
      59                 :            : #endif // RiemannChoice_h

Generated by: LCOV version 1.14