Quinoa regression test code coverage report
Current view: top level - DiffEq/Beta - BetaCoeffPolicy.cpp (source / functions) Hit Total Coverage
Commit: Quinoa_v0.3-957-gb4f0efae0 Lines: 8 8 100.0 %
Date: 2021-11-09 13:40:20 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 42 7.1 %

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

Generated by: LCOV version 1.14