Walker test code coverage report
Current view: top level - DiffEq/Gamma - GammaCoeffPolicy.cpp (source / functions) Hit Total Coverage
Commit: test_coverage.info Lines: 8 8 100.0 %
Date: 2022-09-21 13:52:12 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 44 9.1 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/DiffEq/Gamma/GammaCoeffPolicy.cpp
       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     Gamma coefficients policies
       9                 :            :   \details   This file defines coefficients policy classes for the gamma
      10                 :            :              SDE, defined in DiffEq/Gamma/Gamma.h. For general requirements on
      11                 :            :              Gamma SDE coefficients policy classes see the header file.
      12                 :            : */
      13                 :            : // *****************************************************************************
      14                 :            : 
      15                 :            : #include "GammaCoeffPolicy.hpp"
      16                 :            : 
      17         [ -  + ]:         11 : walker::GammaCoeffConst::GammaCoeffConst(
      18                 :            :   tk::ctr::ncomp_t ncomp,
      19                 :            :   const std::vector< kw::sde_b::info::expect::type >& b_,
      20                 :            :   const std::vector< kw::sde_S::info::expect::type >& S_,
      21                 :            :   const std::vector< kw::sde_kappa::info::expect::type >& k_,
      22                 :            :   std::vector< kw::sde_b::info::expect::type  >& b,
      23                 :            :   std::vector< kw::sde_S::info::expect::type >& S,
      24                 :            :   std::vector< kw::sde_kappa::info::expect::type >& k )
      25                 :            : // *****************************************************************************
      26                 :            : // Constructor: initialize coefficients
      27                 :            : //! \param[in] ncomp Number of scalar components in this SDE system
      28                 :            : //! \param[in] b_ Vector used to initialize coefficient vector b
      29                 :            : //! \param[in] S_ Vector used to initialize coefficient vector S
      30                 :            : //! \param[in] k_ Vector used to initialize coefficient vector k
      31                 :            : //! \param[in,out] b Coefficient vector to be initialized
      32                 :            : //! \param[in,out] S Coefficient vector to be initialized
      33                 :            : //! \param[in,out] k Coefficient vector to be initialized
      34                 :            : // *****************************************************************************
      35                 :            : {
      36 [ -  + ][ -  - ]:         11 :   ErrChk( b_.size() == ncomp,
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
                 [ -  - ]
      37                 :            :           "Wrong number of gamma SDE parameters 'b'");
      38 [ -  + ][ -  - ]:         11 :   ErrChk( S_.size() == ncomp,
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
                 [ -  - ]
      39                 :            :           "Wrong number of gamma SDE parameters 'S'");
      40 [ -  + ][ -  - ]:         11 :   ErrChk( k_.size() == ncomp,
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
                 [ -  - ]
      41                 :            :           "Wrong number of gamma SDE parameters 'kappa'");
      42                 :            : 
      43                 :         11 :   b = b_;
      44                 :         11 :   S = S_;
      45                 :         11 :   k = k_;
      46                 :         11 : }

Generated by: LCOV version 1.14