Quinoa all test code coverage report
Current view: top level - Control/Inciter/Options - Limiter.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 4 4 100.0 %
Date: 2024-04-29 14:42:33 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 9 22 40.9 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/Control/Inciter/Options/Limiter.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     Limiter options for DG
       9                 :            :   \details   Limiter options for DG
      10                 :            : */
      11                 :            : // *****************************************************************************
      12                 :            : #ifndef LimiterOptions_h
      13                 :            : #define LimiterOptions_h
      14                 :            : 
      15                 :            : #include <brigand/sequences/list.hpp>
      16                 :            : 
      17                 :            : #include "Toggle.hpp"
      18                 :            : #include "PUPUtil.hpp"
      19                 :            : 
      20                 :            : namespace inciter {
      21                 :            : namespace ctr {
      22                 :            : 
      23                 :            : //! Limiter types
      24                 :            : enum class LimiterType : uint8_t { NOLIMITER
      25                 :            :                                  , WENOP1
      26                 :            :                                  , SUPERBEEP1
      27                 :            :                                  , VERTEXBASEDP1 };
      28                 :            : 
      29                 :            : //! Pack/Unpack LimiterType: forward overload to generic enum class packer
      30                 :            : inline void operator|( PUP::er& p, LimiterType& e ) { PUP::pup( p, e ); }
      31                 :            : 
      32                 :            : //! \brief Limiter options: outsource to base templated on enum type
      33                 :        304 : class Limiter : public tk::Toggle< LimiterType > {
      34                 :            : 
      35                 :            :   public:
      36                 :            :     //! \brief Options constructor
      37                 :            :     //! \details Simply initialize in-line and pass associations to base, which
      38                 :            :     //!    will handle client interactions
      39                 :        304 :     explicit Limiter() :
      40                 :            :       tk::Toggle< LimiterType >(
      41                 :            :         //! Group, i.e., options, name
      42                 :            :         "Limiter",
      43                 :            :         //! Enums -> names (if defined, policy codes, if not, name)
      44                 :            :         { { LimiterType::NOLIMITER, "nolimiter" },
      45                 :            :           { LimiterType::WENOP1, "wenop1" },
      46                 :            :           { LimiterType::SUPERBEEP1, "superbeep1" },
      47                 :            :           { LimiterType::VERTEXBASEDP1, "vertexbasedp1" } },
      48                 :            :         //! keywords -> Enums
      49                 :            :         { { "nolimiter", LimiterType::NOLIMITER },
      50                 :            :           { "wenop1", LimiterType::WENOP1 },
      51                 :            :           { "superbeep1", LimiterType::SUPERBEEP1 },
      52 [ +  - ][ +  - ]:       3648 :           { "vertexbasedp1", LimiterType::VERTEXBASEDP1 } } )
         [ +  - ][ +  + ]
         [ -  + ][ +  + ]
         [ -  + ][ -  - ]
         [ -  - ][ -  - ]
                 [ -  - ]
      53                 :        304 :     {}
      54                 :            : 
      55                 :            : };
      56                 :            : 
      57                 :            : } // ctr::
      58                 :            : } // inciter::
      59                 :            : 
      60                 :            : #endif // LimiterOptions_h

Generated by: LCOV version 1.14