GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/geomechanics/poroelastic/iofields.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 3 9 33.3%
Branches: 8 24 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 PoroElastic
10 * \brief Adds I/O fields specific to the poro-elastic model
11 */
12 #ifndef DUMUX_POROELASTIC_IO_FIELDS_HH
13 #define DUMUX_POROELASTIC_IO_FIELDS_HH
14
15 #include <dumux/io/name.hh>
16
17 namespace Dumux {
18
19 /*!
20 * \ingroup PoroElastic
21 * \brief Adds I/O fields specific to the poro-elastic model
22 */
23 class PoroElasticIOFields
24 {
25 public:
26 template <class OutputModule>
27 4 static void initOutputModule(OutputModule& out)
28 {
29
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.
12872 out.addVolumeVariable([](const auto& volVars){ return volVars.displacement(); },
30 IOName::displacement());
31
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& volVars){ return volVars.porosity(); },
32 IOName::porosity());
33 4 }
34
35 };
36
37 } // end namespace Dumux
38
39 #endif
40