Quinoa all test code coverage report
Current view: top level - Control/Inciter/Options - MeshVelocitySmoother.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/MeshVelocitySmoother.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     Mesh velocity smoother configuration options for inciter
       9                 :            :   \details   Mesh velocity smoother configuration options for inciter.
      10                 :            : */
      11                 :            : // *****************************************************************************
      12                 :            : #ifndef MeshVelocitySmootherOptions_h
      13                 :            : #define MeshVelocitySmootherOptions_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                 :            : //! Mesh velocity smoother configuration option types
      24                 :            : enum class MeshVelocitySmootherType : uint8_t { NONE
      25                 :            :                                               , LAPLACE
      26                 :            :                                               , HELMHOLTZ
      27                 :            :                                               };
      28                 :            : 
      29                 :            : //! \brief Pack/Unpack MeshVelocitySmootherType: forward overload to generic
      30                 :            : //!    enum class packer
      31                 :            : inline void operator|( PUP::er& p, MeshVelocitySmootherType& e )
      32                 :            : { PUP::pup( p, e ); }
      33                 :            : 
      34                 :            : //! \brief Mesh velocity options: outsource to base templated on enum type
      35                 :         10 : class MeshVelocitySmoother : public tk::Toggle< MeshVelocitySmootherType > {
      36                 :            : 
      37                 :            :   public:
      38                 :            :     //! \brief Options constructor
      39                 :            :     //! \details Simply initialize in-line and pass associations to base, which
      40                 :            :     //!    will handle client interactions
      41                 :         20 :     explicit MeshVelocitySmoother() :
      42                 :            :       tk::Toggle< MeshVelocitySmootherType >(
      43                 :            :         //! Group, i.e., options, name
      44                 :            :         "Mesh velocity smoother",
      45                 :            :         //! Enums -> names (if defined, policy codes, if not, name)
      46                 :            :         { { MeshVelocitySmootherType::NONE, "none" }
      47                 :            :         , { MeshVelocitySmootherType::LAPLACE, "laplace" }
      48                 :            :         , { MeshVelocitySmootherType::HELMHOLTZ, "helmholtz" }
      49                 :            :         },
      50                 :            :         //! keywords -> Enums
      51                 :            :         { { "none", MeshVelocitySmootherType::NONE }
      52                 :            :         , { "laplace", MeshVelocitySmootherType::LAPLACE }
      53                 :            :         , { "helmholtz", MeshVelocitySmootherType::HELMHOLTZ }
      54 [ +  - ][ +  - ]:        200 :         } )
         [ +  - ][ +  + ]
         [ -  + ][ +  + ]
         [ -  + ][ -  - ]
         [ -  - ][ -  - ]
                 [ -  - ]
      55                 :         20 :     {}
      56                 :            : 
      57                 :            : };
      58                 :            : 
      59                 :            : } // ctr::
      60                 :            : } // inciter::
      61                 :            : 
      62                 :            : #endif // MeshVelocitySmootherOptions_h

Generated by: LCOV version 1.14