Quinoa all test code coverage report
Current view: top level - PDE/MultiMat - RiemannChoice.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 7 12 58.3 %
Date: 2024-11-22 08:51:48 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 5 22 22.7 %

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

Generated by: LCOV version 1.14