GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/porenetwork/1p/spatialparams.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 0 0 -%
Branches: 3 12 25.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 PNMOnePModel
10 * \ingroup SpatialParameters
11 * \brief The spatial parameters for single-phase pore-network models.
12 */
13 #ifndef DUMUX_PNM_1P_SPATIAL_PARAMS_HH
14 #define DUMUX_PNM_1P_SPATIAL_PARAMS_HH
15
16 #include <dumux/porenetwork/common/spatialparams.hh>
17
18 namespace Dumux::PoreNetwork {
19
20 /*!
21 * \ingroup SpatialParameters
22 * \ingroup PNMOnePModel
23 * \brief The base class for spatial parameters for single-phase pore-network models.
24 */
25 template<class GridGeometry, class Scalar, class Implementation>
26 10 class OnePSpatialParams
27 : public SpatialParams<GridGeometry, Scalar, Implementation>
28 {
29 using ParentType = SpatialParams<GridGeometry, Scalar, Implementation>;
30 public:
31 1 using ParentType::ParentType;
32 };
33
34 /*!
35 * \ingroup PNMOnePModel
36 * \ingroup SpatialParameters
37 * \brief The default class for spatial parameters for single-phase pore-network models.
38 * \note We have this layer for consistency with the two-phase pore-network models. Also, we
39 * may use this in the feature to define defaults for newly added parameter interfaces.
40 */
41 template<class GridGeometry, class Scalar>
42
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 5 times.
✗ Branch 5 not taken.
5 class OnePDefaultSpatialParams
43 : public OnePSpatialParams<GridGeometry, Scalar, OnePDefaultSpatialParams<GridGeometry, Scalar>>
44 {
45 using ParentType = OnePSpatialParams<GridGeometry, Scalar, OnePDefaultSpatialParams<GridGeometry, Scalar>>;
46 public:
47
2/6
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
1 using ParentType::ParentType;
48 };
49 } // namespace Dumux::PoreNetwork
50
51 #endif
52