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 CCTpfaDiscretization | ||
10 | * \brief The grid volume variables class for cell centered tpfa models | ||
11 | */ | ||
12 | #ifndef DUMUX_DISCRETIZATION_CC_TPFA_GRID_VOLUMEVARIABLES_HH | ||
13 | #define DUMUX_DISCRETIZATION_CC_TPFA_GRID_VOLUMEVARIABLES_HH | ||
14 | |||
15 | #include <dumux/discretization/cellcentered/tpfa/elementvolumevariables.hh> | ||
16 | #include <dumux/discretization/cellcentered/gridvolumevariables.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | template<class P, class VV> | ||
21 | struct CCTpfaDefaultGridVolumeVariablesTraits | ||
22 | { | ||
23 | using Problem = P; | ||
24 | using VolumeVariables = VV; | ||
25 | |||
26 | template<class GridVolumeVariables, bool cachingEnabled> | ||
27 | using LocalView = CCTpfaElementVolumeVariables<GridVolumeVariables, cachingEnabled>; | ||
28 | }; | ||
29 | |||
30 | /*! | ||
31 | * \ingroup CCTpfaDiscretization | ||
32 | * \brief Base class for the grid volume variables | ||
33 | * \note This class has a cached version and a non-cached version | ||
34 | * \tparam Problem the type of problem we are solving | ||
35 | * \tparam VolumeVariables the type of volume variables we are using for the model | ||
36 | * \tparam Traits the traits class injecting the problem, volVar and elemVolVars type | ||
37 | * \tparam cachingEnabled if the cache is enabled | ||
38 | */ | ||
39 | template<class Problem, | ||
40 | class VolumeVariables, | ||
41 | bool cachingEnabled = false, | ||
42 | class Traits = CCTpfaDefaultGridVolumeVariablesTraits<Problem, VolumeVariables> > | ||
43 |
11/15✓ Branch 2 taken 1400 times.
✓ Branch 3 taken 500 times.
✓ Branch 4 taken 369 times.
✓ Branch 5 taken 1400 times.
✓ Branch 6 taken 635 times.
✓ Branch 7 taken 689 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 100 times.
✓ Branch 10 taken 355 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 100 times.
✓ Branch 13 taken 246 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 246 times.
✗ Branch 17 not taken.
|
2858 | class CCTpfaGridVolumeVariables : public CCGridVolumeVariables<Traits, cachingEnabled> |
44 | { | ||
45 | public: | ||
46 | using ParentType = CCGridVolumeVariables<Traits, cachingEnabled>; | ||
47 |
4/32✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 3 times.
✗ 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.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
|
12 | using ParentType::ParentType; |
48 | }; | ||
49 | |||
50 | } // end namespace Dumux | ||
51 | |||
52 | #endif | ||
53 |