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 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 | 329 | static void initOutputModule(OutputModule& out) | |
29 | { | ||
30 |
4/12✓ Branch 2 taken 233 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 233 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 233 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 233 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
|
1077486 | out.addVolumeVariable([](const auto& volVars){ return volVars.pressure(); }, |
31 | IOName::pressure()); | ||
32 | 329 | } | |
33 | |||
34 | template <class ModelTraits = void, class FluidSystem = void, class SolidSystem = void> | ||
35 | ✗ | static std::string primaryVariableName(int pvIdx = 0, int state = 0) | |
36 | { | ||
37 | ✗ | return IOName::pressure(); | |
38 | } | ||
39 | }; | ||
40 | |||
41 | } // end namespace Dumux | ||
42 | |||
43 | #endif | ||
44 |