GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/freeflow/navierstokes/energy/iofields.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 2 6 33.3%
Branches: 16 32 50.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 FreeflowNIModel
10 * \copydoc Dumux::NavierStokesEnergyIOFields
11 */
12 #ifndef DUMUX_FREEFLOW_NAVIERSTOKES_ENERGY_IO_FIELDS_HH
13 #define DUMUX_FREEFLOW_NAVIERSTOKES_ENERGY_IO_FIELDS_HH
14
15 #include <dumux/io/name.hh>
16
17 namespace Dumux {
18
19 /*!
20 * \ingroup FreeflowNIModel
21 * \brief Adds I/O fields specific to non-isothermal free-flow models
22 */
23 template<class IsothermalIOFields>
24 struct NavierStokesEnergyIOFields
25 {
26
27 //! Add the non-isothermal specific output fields.
28 template <class OutputModule>
29 4 static void initOutputModule(OutputModule& out)
30 {
31 4 IsothermalIOFields::initOutputModule(out);
32
33
4/12
✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 4 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
8 out.addVolumeVariable([](const auto& v){ return v.temperature(); }, IOName::temperature());
34
12/20
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
✓ Branch 5 taken 2 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 2 times.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 2 times.
✓ Branch 16 taken 2 times.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
20512 out.addVolumeVariable([](const auto& v){ return v.fluidThermalConductivity(); }, "lambda");
35 4 }
36
37 //! return the names of the primary variables
38 template<class ModelTraits, class FluidSystem = void>
39 static std::string primaryVariableName(int pvIdx, int state = 0)
40 {
41 if (pvIdx < ModelTraits::numEq() - 1)
42 return IsothermalIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state);
43 else
44 return IOName::temperature();
45 }
46 };
47
48 } // end namespace Dumux
49
50 #endif
51