Walker test code coverage report
Current view: top level - DiffEq/Dissipation - DissipationCoeffPolicy.cpp (source / functions) Hit Total Coverage
Commit: test_coverage.info Lines: 6 12 50.0 %
Date: 2022-09-21 18:57:21 Functions: 1 2 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/DiffEq/Dissipation/DissipationCoeffPolicy.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     Dissipation SDE coefficients policies
       9                 :            :   \details   This file defines coefficients policy classes for the dissipation
      10                 :            :              SDE, defined in DiffEq/Dissipation/Dissipation.h. For general
      11                 :            :              requirements on dissipation SDE coefficients policy classes see the
      12                 :            :              header file.
      13                 :            : */
      14                 :            : // *****************************************************************************
      15                 :            : 
      16                 :            : #include "DissipationCoeffPolicy.hpp"
      17                 :            : 
      18                 :         18 : walker::DissipationCoeffConst::DissipationCoeffConst(
      19                 :            :   kw::sde_c3::info::expect::type c3_,
      20                 :            :   kw::sde_c4::info::expect::type c4_,
      21                 :            :   kw::sde_com1::info::expect::type com1_,
      22                 :            :   kw::sde_com2::info::expect::type com2_,
      23                 :            :   kw::sde_c3::info::expect::type& c3,
      24                 :            :   kw::sde_c4::info::expect::type& c4,
      25                 :            :   kw::sde_com1::info::expect::type& com1,
      26                 :            :   kw::sde_com2::info::expect::type& com2 )
      27                 :            : // *****************************************************************************
      28                 :            : // Constructor: initialize coefficients
      29                 :            : //! \param[in] c3_ Scalar coefficient used to initialize coefficient c3
      30                 :            : //! \param[in] c4_ Scalar coefficient used to initialize coefficient c4
      31                 :            : //! \param[in] com1_ Scalar coefficient used to initialize coefficient com1
      32                 :            : //! \param[in] com2_ Scalar coefficient used to initialize coefficient com2
      33                 :            : //! \param[in,out] c3 Scalar coefficient to be initialized
      34                 :            : //! \param[in,out] c4 Scalar coefficient to be initialized
      35                 :            : //! \param[in,out] com1 Scalar coefficient to be initialized
      36                 :            : //! \param[in,out] com2 Scalar coefficient to be initialized
      37                 :            : // *****************************************************************************
      38                 :            : {
      39                 :         18 :   c3 = c3_;
      40                 :         18 :   c4 = c4_;
      41                 :         18 :   com1 = com1_;
      42                 :         18 :   com2 = com2_;
      43                 :         18 : }
      44                 :            : 
      45                 :          0 : walker::DissipationCoeffStationary::DissipationCoeffStationary(
      46                 :            :   kw::sde_c3::info::expect::type c3_,
      47                 :            :   kw::sde_c4::info::expect::type c4_,
      48                 :            :   kw::sde_com1::info::expect::type com1_,
      49                 :            :   kw::sde_com2::info::expect::type com2_,
      50                 :            :   kw::sde_c3::info::expect::type& c3,
      51                 :            :   kw::sde_c4::info::expect::type& c4,
      52                 :            :   kw::sde_com1::info::expect::type& com1,
      53                 :            :   kw::sde_com2::info::expect::type& com2 )
      54                 :            : // *****************************************************************************
      55                 :            : // Constructor: initialize coefficients
      56                 :            : //! \param[in] c3_ Scalar coefficient used to initialize coefficient c3
      57                 :            : //! \param[in] c4_ Scalar coefficient used to initialize coefficient c4
      58                 :            : //! \param[in] com1_ Scalar coefficient used to initialize coefficient com1
      59                 :            : //! \param[in] com2_ Scalar coefficient used to initialize coefficient com2
      60                 :            : //! \param[in,out] c3 Scalar coefficient to be initialized
      61                 :            : //! \param[in,out] c4 Scalar coefficient to be initialized
      62                 :            : //! \param[in,out] com1 Scalar coefficient to be initialized
      63                 :            : //! \param[in,out] com2 Scalar coefficient to be initialized
      64                 :            : // *****************************************************************************
      65                 :            : {
      66                 :          0 :   c3 = c3_;
      67                 :          0 :   c4 = c4_;
      68                 :          0 :   com1 = com1_;
      69                 :          0 :   com2 = com2_;
      70                 :          0 : }

Generated by: LCOV version 1.14