Quinoa all test code coverage report
Current view: top level - PDE - ConfigureOutVar.hpp (source / functions) Hit Total Coverage
Commit: Quinoa_v0.3-957-gb4f0efae0 Lines: 3 3 100.0 %
Date: 2021-11-09 15:14:18 Functions: 11 11 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 4 100.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/PDE/ConfigureOutVar.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     Assign functions to compute output variables from the numerical
       9                 :            :                solution
      10                 :            :   \details   Assign functions to compute output variables from the numerical
      11                 :            :                solution.
      12                 :            : */
      13                 :            : // *****************************************************************************
      14                 :            : #ifndef ConfigureOutVar_h
      15                 :            : #define ConfigureOutVar_h
      16                 :            : 
      17                 :            : #include <vector>
      18                 :            : 
      19                 :            : #include "FunctionPrototypes.hpp"
      20                 :            : 
      21                 :            : namespace inciter {
      22                 :            : 
      23                 :            : //! \brief Assign all functions that compute output variables from the
      24                 :            : //!   numerical solution
      25                 :            : tk::GetVarFn
      26                 :            : assignGetVars( const std::string& name );
      27                 :            : 
      28                 :            : //! Assign a function to compute an output variable from the numerical solution
      29                 :            : //! \tparam Keyword Keyword used to match to variable name whose fn to assign
      30                 :            : //! \param[in] name Name of variable whose OutVar::GetVarFn is to be assigned
      31                 :            : //! \param[in] src Function to assign if there is a match
      32                 :            : //! \param[in,out] dst Function to assign to if there is a match
      33                 :            : //! \note This is used to configure human-readable output variables only.
      34                 :            : template< class Keyword >
      35                 :            : void
      36                 :      35732 : assign( const std::string& name, const tk::GetVarFn& src, tk::GetVarFn& dst ) {
      37 [ +  + ][ +  + ]:      43654 :   if (name == Keyword::string()) dst = src;
      38                 :      35732 : }
      39                 :            : 
      40                 :            : } // inciter::
      41                 :            : 
      42                 :            : #endif // ConfigureOutVar_h

Generated by: LCOV version 1.14