GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/test/porenetwork/1pnc/spatialparams.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 4 6 66.7%
Functions: 1 2 50.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 PoreNetworkModels
10 * \ingroup SpatialParameters
11 * \brief Spatial parameters for an isothermal 1p pore-network model
12 */
13 #ifndef DUMUX_COMPOSITIONAL_PNM_SPATIAL_PARAMS_1P_HH
14 #define DUMUX_COMPOSITIONAL_PNM_SPATIAL_PARAMS_1P_HH
15
16 #include <dumux/porenetwork/common/spatialparams.hh>
17
18 namespace Dumux::PoreNetwork {
19
20 template<class GridGeometry, class Scalar>
21
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
3 class CompositionalSpatialParams
22 : public SpatialParams<GridGeometry, Scalar, CompositionalSpatialParams<GridGeometry, Scalar>>
23 {
24 using ParentType = SpatialParams<GridGeometry, Scalar, CompositionalSpatialParams<GridGeometry, Scalar>>;
25
26 using GridView = typename GridGeometry::GridView;
27 using Element = typename GridView::template Codim<0>::Entity;
28 using FVElementGeometry = typename GridGeometry::LocalView;
29 using SubControlVolume = typename GridGeometry::SubControlVolume;
30 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
31 public:
32 using PermeabilityType = Scalar;
33 using ParentType::ParentType;
34
35 3 CompositionalSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
36
2/6
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
3 : ParentType(gridGeometry)
37 3 { }
38
39 Scalar temperatureAtPos(const GlobalPosition& globalPos) const
40 { return 273.15 + 10.0; }
41 };
42 } // end namespace Dumux::PoreNetwork
43
44 #endif
45