GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/discretization/cellcentered/mpfa/gridvolumevariables.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 0 0 -%
Branches: 5 25 20.0%

Line Branch Exec Source
1 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 // vi: set et ts=4 sw=4 sts=4:
3 //
4 // SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 /*!
8 * \file
9 * \ingroup CCMpfaDiscretization
10 * \brief The grid volume variables class for cell centered mpfa models
11 */
12 #ifndef DUMUX_DISCRETIZATION_CC_MPFA_GRID_VOLUMEVARIABLES_HH
13 #define DUMUX_DISCRETIZATION_CC_MPFA_GRID_VOLUMEVARIABLES_HH
14
15 #include <dumux/discretization/cellcentered/mpfa/elementvolumevariables.hh>
16 #include <dumux/discretization/cellcentered/gridvolumevariables.hh>
17
18 namespace Dumux {
19
20 /*!
21 * \ingroup CCMpfaDiscretization
22 * \brief Traits for the base class for the grid volume variables
23 */
24 template<class P, class VV>
25 struct CCMpfaDefaultGridVolumeVariablesTraits
26 {
27 using Problem = P;
28 using VolumeVariables = VV;
29
30 template<class GridVolumeVariables, bool cachingEnabled>
31 using LocalView = CCMpfaElementVolumeVariables<GridVolumeVariables, cachingEnabled>;
32 };
33
34 /*!
35 * \ingroup CCMpfaDiscretization
36 * \brief Base class for the grid volume variables
37 * \note This class has a cached version and a non-cached version
38 * \tparam Problem the type of problem we are solving
39 * \tparam VolumeVariables the type of volume variables we are using for the model
40 * \tparam Traits the traits class injecting the problem, volVar and elemVolVars type
41 * \tparam cachingEnabled if the cache is enabled
42 */
43 template<class Problem,
44 class VolumeVariables,
45 bool cachingEnabled = false,
46 class Traits = CCMpfaDefaultGridVolumeVariablesTraits<Problem, VolumeVariables> >
47
5/9
✓ Branch 2 taken 1000 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 195 times.
✓ Branch 5 taken 1000 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 223 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 28 times.
✗ Branch 11 not taken.
1239 class CCMpfaGridVolumeVariables : public CCGridVolumeVariables<Traits, cachingEnabled>
48 {
49 public:
50 using ParentType = CCGridVolumeVariables<Traits, cachingEnabled>;
51
0/16
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
60 using ParentType::ParentType;
52 };
53
54 } // end namespace Dumux
55
56 #endif
57