GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/porenetwork/solidenergy/iofields.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 2 4 50.0%
Branches: 4 12 33.3%

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 PNMSolidEnergyModel
10 * \copydoc Dumux::PoreNetwork::SolidEnergyIOFields
11 */
12 #ifndef DUMUX_PNM_SOLID_ENERGY_IO_FIELDS_HH
13 #define DUMUX_PNM_SOLID_ENERGY_IO_FIELDS_HH
14
15 #include <dumux/porenetwork/common/iofields.hh>
16 #include <dumux/io/name.hh>
17
18 namespace Dumux::PoreNetwork {
19
20 /*!
21 * \ingroup PNMSolidEnergyModel
22 * \brief Adds output fields specific to the PNM solid-energy model
23 */
24 class SolidEnergyIOFields
25 {
26 public:
27
28 template <class OutputModule>
29 3 static void initOutputModule(OutputModule& out)
30 {
31 3 CommonIOFields::initOutputModule(out);
32
4/12
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 3 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
6 out.addVolumeVariable( [](const auto& v){ return v.temperature(); }, IOName::temperature());
33 3 }
34
35 template <class ModelTraits, class FluidSystem = void, class SolidSystem = void>
36 static std::string primaryVariableName(int pvIdx, int state = 0)
37 {
38 return IOName::temperature();
39 }
40 };
41
42 } // end namespace Dumux::PoreNetwork
43
44 #endif
45