GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/porousmediumflow/problem.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 0 0 -%
Branches: 4 8 50.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 PorousmediumflowModels
10 * \brief Base class for all porous media problems.
11 */
12 #ifndef DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
13 #define DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
14
15 #include <dumux/common/properties.hh>
16 #include <dumux/common/fvproblemwithspatialparams.hh>
17
18 namespace Dumux {
19
20 /*!
21 * \ingroup PorousmediumflowModels
22 * \brief Base class for all fully implicit porous media problems.
23 *
24 * TODO: derive from base problem property?
25 */
26 template<class TypeTag>
27 102 class PorousMediumFlowProblem : public FVProblemWithSpatialParams<TypeTag>
28 {
29 using ParentType = FVProblemWithSpatialParams<TypeTag>;
30
31 using Scalar = GetPropType<TypeTag, Properties::Scalar>;
32 using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
33 using Element = typename GridGeometry::GridView::template Codim<0>::Entity;
34 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
35
36 public:
37
38 //! Use constructors of the base class
39
4/8
✓ Branch 1 taken 429 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 93 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 6 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
531 using ParentType::ParentType;
40 };
41
42 } // end namespace Dumux
43
44 #endif
45