GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: dumux/dumux/porousmediumflow/1p/iofields.hh
Date: 2025-04-12 19:19:20
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 97 100 97.0%
Branches: 2 3 66.7%

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-FileCopyrightText: 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 OnePModel
10 * \brief Adds I/O fields specific to the one phase model.
11 */
12
13 #ifndef DUMUX_ONEP_IO_FIELDS_HH
14 #define DUMUX_ONEP_IO_FIELDS_HH
15
16 #include <dumux/io/name.hh>
17
18 namespace Dumux {
19
20 /*!
21 * \ingroup OnePModel
22 * \brief Adds I/O fields specific to the one phase model.
23 */
24 class OnePIOFields
25 {
26 public:
27 template <class OutputModule>
28 356 static void initOutputModule(OutputModule& out)
29 {
30
2/3
✓ Branch 1 taken 249 times.
✓ Branch 2 taken 11 times.
✗ Branch 3 not taken.
539126 out.addVolumeVariable([](const auto& volVars){ return volVars.pressure(); },
31 IOName::pressure());
32 356 }
33
34 template <class ModelTraits = void, class FluidSystem = void, class SolidSystem = void>
35 2 static std::string primaryVariableName(int pvIdx = 0, int state = 0)
36 {
37 2 return IOName::pressure();
38 }
39 };
40
41 } // end namespace Dumux
42
43 #endif
44