GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/porenetwork/1pnc/iofields.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 9 10 90.0%
Functions: 2 8 25.0%
Branches: 13 36 36.1%

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 PNMOnePNCModel
10 * \copydoc Dumux::PoreNetwork::OnePNCIOFields
11 */
12 #ifndef DUMUX_PNM_ONEP_NC_IO_FIELDS_HH
13 #define DUMUX_PNM_ONEP_NC_IO_FIELDS_HH
14
15 #include <dumux/porousmediumflow/1pnc/iofields.hh>
16 #include <dumux/porenetwork/common/iofields.hh>
17
18 namespace Dumux::PoreNetwork {
19
20 /*!
21 * \ingroup PNMOnePNCModel
22 * \brief Adds output fields specific to the PNM 1pnc model
23 */
24 template<class FluidSystem>
25 class OnePNCIOFields
26 {
27 public:
28 template<class OutputModule>
29 3 static void initOutputModule(OutputModule& out)
30 {
31 3 Dumux::OnePNCIOFields::initOutputModule(out);
32 3 CommonIOFields::initOutputModule(out);
33
34
7/18
✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 3 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 3 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 3 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
12 out.addFluxVariable([](const auto& fluxVars, const auto& fluxVarsCache)
35 23016 { return fluxVarsCache.transmissibility(0); }, "transmissibility");
36
37 auto volumeFlux = [](const auto& fluxVars, const auto& fluxVarsCache)
38 {
39 92064 auto upwindTerm = [](const auto& volVars) { return volVars.mobility(0); };
40 using std::abs;
41
0/2
✗ Branch 2 not taken.
✗ Branch 3 not taken.
23016 return abs(fluxVars.advectiveFlux(0, upwindTerm));
42 };
43
6/16
✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 3 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 3 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
9 out.addFluxVariable(volumeFlux, "volumeFlux");
44 3 }
45 };
46
47 } // end namespace Dumux::PoreNetwork
48
49 #endif
50