GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/common/boundarytypes.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 51 57 89.5%
Functions: 0 8 0.0%
Branches: 1155 2532 45.6%

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 Core
10 * \brief Class to specify the type of a boundary.
11 */
12 #ifndef DUMUX_BOUNDARY_TYPES_HH
13 #define DUMUX_BOUNDARY_TYPES_HH
14
15 #include <algorithm>
16 #include <array>
17
18 namespace Dumux {
19
20 /*!
21 * \ingroup Core
22 * \brief Class to specify the type of a boundary.
23 */
24 template <int numEq>
25 class BoundaryTypes
26 {
27 public:
28 530868368 BoundaryTypes()
29
2/2
✓ Branch 0 taken 5780495 times.
✓ Branch 1 taken 3236184 times.
562973671 { reset(); }
30
31 //! we have a boundary condition for each equation
32 static constexpr int size()
33 { return numEq; }
34
35 /*!
36 * \brief Reset the boundary types for all equations.
37 *
38 * After this method no equations will be disabled and neither
39 * Neumann nor Dirichlet conditions will be evaluated. This
40 * corresponds to a Neumann zero boundary.
41 */
42 void reset()
43 {
44
26/48
✓ Branch 0 taken 457516555 times.
✓ Branch 1 taken 2435631432 times.
✓ Branch 2 taken 30588654 times.
✓ Branch 3 taken 13178300 times.
✓ Branch 4 taken 78493419 times.
✓ Branch 5 taken 33454305 times.
✓ Branch 6 taken 96028178 times.
✓ Branch 7 taken 40222624 times.
✓ Branch 8 taken 32320692 times.
✓ Branch 9 taken 14775275 times.
✓ Branch 10 taken 1141154 times.
✓ Branch 11 taken 433748 times.
✓ Branch 12 taken 249844 times.
✓ Branch 13 taken 269210 times.
✓ Branch 14 taken 384772 times.
✓ Branch 15 taken 129362 times.
✓ Branch 16 taken 10508 times.
✓ Branch 17 taken 3578 times.
✓ Branch 18 taken 684096 times.
✓ Branch 19 taken 341936 times.
✓ Branch 20 taken 1016064 times.
✓ Branch 21 taken 338688 times.
✓ Branch 22 taken 23956 times.
✓ Branch 23 taken 47912 times.
✓ Branch 24 taken 23744 times.
✓ Branch 25 taken 71232 times.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
3325040292 for (int eqIdx=0; eqIdx < numEq; ++eqIdx)
45 5497574388 resetEq(eqIdx);
46 }
47
48 /*!
49 * \brief Reset the boundary types for one equation.
50 */
51 void resetEq(int eqIdx)
52 {
53
24/24
✓ Branch 0 taken 495818 times.
✓ Branch 1 taken 4060977 times.
✓ Branch 2 taken 1591447 times.
✓ Branch 3 taken 6944020 times.
✓ Branch 4 taken 4572723 times.
✓ Branch 5 taken 1965117 times.
✓ Branch 6 taken 6200546 times.
✓ Branch 7 taken 1372562 times.
✓ Branch 8 taken 54538 times.
✓ Branch 9 taken 4428119 times.
✓ Branch 10 taken 184147 times.
✓ Branch 11 taken 3595214 times.
✓ Branch 12 taken 116026 times.
✓ Branch 13 taken 84378 times.
✓ Branch 14 taken 1471 times.
✓ Branch 15 taken 271727 times.
✓ Branch 16 taken 15006 times.
✓ Branch 17 taken 63670 times.
✓ Branch 18 taken 26282 times.
✓ Branch 19 taken 3044 times.
✓ Branch 20 taken 2206 times.
✓ Branch 21 taken 5418 times.
✓ Branch 22 taken 315 times.
✓ Branch 23 taken 750 times.
8571666072 boundaryInfo_[eqIdx].visited = false;
54
55
46/48
✓ Branch 0 taken 1553468 times.
✓ Branch 1 taken 4369263 times.
✓ Branch 2 taken 494987 times.
✓ Branch 3 taken 1380764 times.
✓ Branch 4 taken 4530000 times.
✓ Branch 5 taken 8661604 times.
✓ Branch 6 taken 7399098 times.
✓ Branch 7 taken 5781910 times.
✓ Branch 8 taken 1507439 times.
✓ Branch 9 taken 185759 times.
✓ Branch 10 taken 279789 times.
✓ Branch 11 taken 325753 times.
✓ Branch 12 taken 124510 times.
✓ Branch 13 taken 339024 times.
✓ Branch 14 taken 136893 times.
✓ Branch 15 taken 699581 times.
✓ Branch 16 taken 168358 times.
✓ Branch 17 taken 7171984 times.
✓ Branch 18 taken 168358 times.
✓ Branch 19 taken 4093986 times.
✓ Branch 20 taken 144908 times.
✓ Branch 21 taken 503498 times.
✓ Branch 22 taken 32221 times.
✓ Branch 23 taken 529561 times.
✓ Branch 24 taken 1001 times.
✓ Branch 25 taken 120069 times.
✓ Branch 26 taken 1001 times.
✓ Branch 27 taken 120069 times.
✓ Branch 28 taken 27078 times.
✓ Branch 29 taken 265846 times.
✓ Branch 30 taken 24446 times.
✓ Branch 31 taken 249118 times.
✓ Branch 32 taken 12373 times.
✓ Branch 33 taken 9911 times.
✓ Branch 34 taken 717 times.
✓ Branch 35 taken 7279 times.
✓ Branch 36 taken 2301 times.
✓ Branch 37 taken 1154 times.
✓ Branch 38 taken 2301 times.
✓ Branch 39 taken 1154 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5410 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5410 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 8 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 8 times.
10052872134 boundaryInfo_[eqIdx].isDirichlet = false;
56
46/48
✓ Branch 0 taken 1553468 times.
✓ Branch 1 taken 4369263 times.
✓ Branch 2 taken 494987 times.
✓ Branch 3 taken 1380764 times.
✓ Branch 4 taken 4530000 times.
✓ Branch 5 taken 8661604 times.
✓ Branch 6 taken 7399098 times.
✓ Branch 7 taken 5781910 times.
✓ Branch 8 taken 1507439 times.
✓ Branch 9 taken 185759 times.
✓ Branch 10 taken 279789 times.
✓ Branch 11 taken 325753 times.
✓ Branch 12 taken 124510 times.
✓ Branch 13 taken 339024 times.
✓ Branch 14 taken 136893 times.
✓ Branch 15 taken 699581 times.
✓ Branch 16 taken 168358 times.
✓ Branch 17 taken 7171984 times.
✓ Branch 18 taken 168358 times.
✓ Branch 19 taken 4093986 times.
✓ Branch 20 taken 144908 times.
✓ Branch 21 taken 503498 times.
✓ Branch 22 taken 32221 times.
✓ Branch 23 taken 529561 times.
✓ Branch 24 taken 1001 times.
✓ Branch 25 taken 120069 times.
✓ Branch 26 taken 1001 times.
✓ Branch 27 taken 120069 times.
✓ Branch 28 taken 27078 times.
✓ Branch 29 taken 265846 times.
✓ Branch 30 taken 24446 times.
✓ Branch 31 taken 249118 times.
✓ Branch 32 taken 12373 times.
✓ Branch 33 taken 9911 times.
✓ Branch 34 taken 717 times.
✓ Branch 35 taken 7279 times.
✓ Branch 36 taken 2301 times.
✓ Branch 37 taken 1154 times.
✓ Branch 38 taken 2301 times.
✓ Branch 39 taken 1154 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5410 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5410 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 8 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 8 times.
10052872134 boundaryInfo_[eqIdx].isNeumann = false;
57
46/48
✓ Branch 0 taken 1553468 times.
✓ Branch 1 taken 4369263 times.
✓ Branch 2 taken 494987 times.
✓ Branch 3 taken 1380764 times.
✓ Branch 4 taken 4530000 times.
✓ Branch 5 taken 8661604 times.
✓ Branch 6 taken 7399098 times.
✓ Branch 7 taken 5781910 times.
✓ Branch 8 taken 1507439 times.
✓ Branch 9 taken 185759 times.
✓ Branch 10 taken 279789 times.
✓ Branch 11 taken 325753 times.
✓ Branch 12 taken 124510 times.
✓ Branch 13 taken 339024 times.
✓ Branch 14 taken 136893 times.
✓ Branch 15 taken 699581 times.
✓ Branch 16 taken 168358 times.
✓ Branch 17 taken 7171984 times.
✓ Branch 18 taken 168358 times.
✓ Branch 19 taken 4093986 times.
✓ Branch 20 taken 144908 times.
✓ Branch 21 taken 503498 times.
✓ Branch 22 taken 32221 times.
✓ Branch 23 taken 529561 times.
✓ Branch 24 taken 1001 times.
✓ Branch 25 taken 120069 times.
✓ Branch 26 taken 1001 times.
✓ Branch 27 taken 120069 times.
✓ Branch 28 taken 27078 times.
✓ Branch 29 taken 265846 times.
✓ Branch 30 taken 24446 times.
✓ Branch 31 taken 249118 times.
✓ Branch 32 taken 12373 times.
✓ Branch 33 taken 9911 times.
✓ Branch 34 taken 717 times.
✓ Branch 35 taken 7279 times.
✓ Branch 36 taken 2301 times.
✓ Branch 37 taken 1154 times.
✓ Branch 38 taken 2301 times.
✓ Branch 39 taken 1154 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5410 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5410 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 8 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 8 times.
10052872134 boundaryInfo_[eqIdx].isOutflow = false;
58
46/48
✓ Branch 0 taken 1553468 times.
✓ Branch 1 taken 4369263 times.
✓ Branch 2 taken 494987 times.
✓ Branch 3 taken 1380764 times.
✓ Branch 4 taken 4530000 times.
✓ Branch 5 taken 8661604 times.
✓ Branch 6 taken 7399098 times.
✓ Branch 7 taken 5781910 times.
✓ Branch 8 taken 1507439 times.
✓ Branch 9 taken 185759 times.
✓ Branch 10 taken 279789 times.
✓ Branch 11 taken 325753 times.
✓ Branch 12 taken 124510 times.
✓ Branch 13 taken 339024 times.
✓ Branch 14 taken 136893 times.
✓ Branch 15 taken 699581 times.
✓ Branch 16 taken 168358 times.
✓ Branch 17 taken 7171984 times.
✓ Branch 18 taken 168358 times.
✓ Branch 19 taken 4093986 times.
✓ Branch 20 taken 144908 times.
✓ Branch 21 taken 503498 times.
✓ Branch 22 taken 32221 times.
✓ Branch 23 taken 529561 times.
✓ Branch 24 taken 1001 times.
✓ Branch 25 taken 120069 times.
✓ Branch 26 taken 1001 times.
✓ Branch 27 taken 120069 times.
✓ Branch 28 taken 27078 times.
✓ Branch 29 taken 265846 times.
✓ Branch 30 taken 24446 times.
✓ Branch 31 taken 249118 times.
✓ Branch 32 taken 12373 times.
✓ Branch 33 taken 9911 times.
✓ Branch 34 taken 717 times.
✓ Branch 35 taken 7279 times.
✓ Branch 36 taken 2301 times.
✓ Branch 37 taken 1154 times.
✓ Branch 38 taken 2301 times.
✓ Branch 39 taken 1154 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5410 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5410 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 8 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 8 times.
10052872134 boundaryInfo_[eqIdx].isCouplingDirichlet = false;
59
46/48
✓ Branch 0 taken 1553468 times.
✓ Branch 1 taken 4369263 times.
✓ Branch 2 taken 494987 times.
✓ Branch 3 taken 1380764 times.
✓ Branch 4 taken 4530000 times.
✓ Branch 5 taken 8661604 times.
✓ Branch 6 taken 7399098 times.
✓ Branch 7 taken 5781910 times.
✓ Branch 8 taken 1507439 times.
✓ Branch 9 taken 185759 times.
✓ Branch 10 taken 279789 times.
✓ Branch 11 taken 325753 times.
✓ Branch 12 taken 124510 times.
✓ Branch 13 taken 339024 times.
✓ Branch 14 taken 136893 times.
✓ Branch 15 taken 699581 times.
✓ Branch 16 taken 168358 times.
✓ Branch 17 taken 7171984 times.
✓ Branch 18 taken 168358 times.
✓ Branch 19 taken 4093986 times.
✓ Branch 20 taken 144908 times.
✓ Branch 21 taken 503498 times.
✓ Branch 22 taken 32221 times.
✓ Branch 23 taken 529561 times.
✓ Branch 24 taken 1001 times.
✓ Branch 25 taken 120069 times.
✓ Branch 26 taken 1001 times.
✓ Branch 27 taken 120069 times.
✓ Branch 28 taken 27078 times.
✓ Branch 29 taken 265846 times.
✓ Branch 30 taken 24446 times.
✓ Branch 31 taken 249118 times.
✓ Branch 32 taken 12373 times.
✓ Branch 33 taken 9911 times.
✓ Branch 34 taken 717 times.
✓ Branch 35 taken 7279 times.
✓ Branch 36 taken 2301 times.
✓ Branch 37 taken 1154 times.
✓ Branch 38 taken 2301 times.
✓ Branch 39 taken 1154 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5410 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5410 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 8 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 8 times.
10052872134 boundaryInfo_[eqIdx].isCouplingNeumann = false;
60
61
46/48
✓ Branch 0 taken 1553468 times.
✓ Branch 1 taken 4369263 times.
✓ Branch 2 taken 494987 times.
✓ Branch 3 taken 1380764 times.
✓ Branch 4 taken 4530000 times.
✓ Branch 5 taken 8661604 times.
✓ Branch 6 taken 7399098 times.
✓ Branch 7 taken 5781910 times.
✓ Branch 8 taken 1507439 times.
✓ Branch 9 taken 185759 times.
✓ Branch 10 taken 279789 times.
✓ Branch 11 taken 325753 times.
✓ Branch 12 taken 124510 times.
✓ Branch 13 taken 339024 times.
✓ Branch 14 taken 136893 times.
✓ Branch 15 taken 699581 times.
✓ Branch 16 taken 168358 times.
✓ Branch 17 taken 7171984 times.
✓ Branch 18 taken 168358 times.
✓ Branch 19 taken 4093986 times.
✓ Branch 20 taken 144908 times.
✓ Branch 21 taken 503498 times.
✓ Branch 22 taken 32221 times.
✓ Branch 23 taken 529561 times.
✓ Branch 24 taken 1001 times.
✓ Branch 25 taken 120069 times.
✓ Branch 26 taken 1001 times.
✓ Branch 27 taken 120069 times.
✓ Branch 28 taken 27078 times.
✓ Branch 29 taken 265846 times.
✓ Branch 30 taken 24446 times.
✓ Branch 31 taken 249118 times.
✓ Branch 32 taken 12373 times.
✓ Branch 33 taken 9911 times.
✓ Branch 34 taken 717 times.
✓ Branch 35 taken 7279 times.
✓ Branch 36 taken 2301 times.
✓ Branch 37 taken 1154 times.
✓ Branch 38 taken 2301 times.
✓ Branch 39 taken 1154 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5410 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5410 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 8 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 8 times.
10052872134 eq2pvIdx_[eqIdx] = eqIdx;
62
48/48
✓ Branch 0 taken 1553468 times.
✓ Branch 1 taken 4369263 times.
✓ Branch 2 taken 673380 times.
✓ Branch 3 taken 4218919 times.
✓ Branch 4 taken 1575124 times.
✓ Branch 5 taken 7123990 times.
✓ Branch 6 taken 1572938 times.
✓ Branch 7 taken 6931150 times.
✓ Branch 8 taken 4644789 times.
✓ Branch 9 taken 2042053 times.
✓ Branch 10 taken 4589649 times.
✓ Branch 11 taken 2041993 times.
✓ Branch 12 taken 6200546 times.
✓ Branch 13 taken 1372562 times.
✓ Branch 14 taken 6200546 times.
✓ Branch 15 taken 1372562 times.
✓ Branch 16 taken 75578 times.
✓ Branch 17 taken 4455041 times.
✓ Branch 18 taken 75578 times.
✓ Branch 19 taken 4455041 times.
✓ Branch 20 taken 184147 times.
✓ Branch 21 taken 3595214 times.
✓ Branch 22 taken 184147 times.
✓ Branch 23 taken 3595214 times.
✓ Branch 24 taken 116026 times.
✓ Branch 25 taken 84352 times.
✓ Branch 26 taken 116026 times.
✓ Branch 27 taken 84352 times.
✓ Branch 28 taken 1471 times.
✓ Branch 29 taken 271701 times.
✓ Branch 30 taken 1471 times.
✓ Branch 31 taken 271727 times.
✓ Branch 32 taken 15006 times.
✓ Branch 33 taken 63696 times.
✓ Branch 34 taken 15006 times.
✓ Branch 35 taken 63696 times.
✓ Branch 36 taken 26282 times.
✓ Branch 37 taken 3070 times.
✓ Branch 38 taken 26282 times.
✓ Branch 39 taken 3070 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5418 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5418 times.
✓ Branch 44 taken 315 times.
✓ Branch 45 taken 750 times.
✓ Branch 46 taken 315 times.
✓ Branch 47 taken 750 times.
18612619944 pv2eqIdx_[eqIdx] = eqIdx;
63 }
64
65 /*!
66 * \brief Returns true if the boundary types for a given equation
67 * has been specified.
68 *
69 * \param eqIdx The index of the equation
70 */
71 bool isSet(int eqIdx) const
72 { return boundaryInfo_[eqIdx].visited; }
73
74 /*!
75 * \brief Make sure the boundary conditions are well-posed.
76 *
77 * If they are not, an assertion fails and the program aborts!
78 * (if the NDEBUG macro is not defined)
79 */
80 void checkWellPosed() const
81 {
82 // if this fails, at least one condition is missing.
83 for (int i=0; i < numEq; ++i)
84 assert(boundaryInfo_[i].visited);
85 }
86
87 /*!
88 * \brief Set all boundary conditions to Neumann.
89 */
90 void setAllNeumann()
91 {
92
18/20
✓ Branch 0 taken 38381468 times.
✓ Branch 1 taken 16159518 times.
✓ Branch 2 taken 22990670 times.
✓ Branch 3 taken 10381329 times.
✓ Branch 4 taken 10187831 times.
✓ Branch 5 taken 3422205 times.
✓ Branch 6 taken 361410 times.
✓ Branch 7 taken 151080 times.
✓ Branch 8 taken 1172300 times.
✓ Branch 9 taken 446084 times.
✓ Branch 10 taken 67244 times.
✓ Branch 11 taken 33398 times.
✓ Branch 12 taken 228964 times.
✓ Branch 13 taken 85322 times.
✓ Branch 14 taken 74124 times.
✓ Branch 15 taken 24758 times.
✓ Branch 16 taken 648 times.
✓ Branch 17 taken 216 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
129786337 for (int eqIdx = 0; eqIdx < numEq; ++eqIdx)
93 172986222 setNeumann(eqIdx);
94 }
95
96 /*!
97 * \brief Set all boundary conditions to Dirichlet.
98 */
99 void setAllDirichlet()
100 {
101
8/12
✓ Branch 0 taken 21546514 times.
✓ Branch 1 taken 10204103 times.
✓ Branch 2 taken 282341 times.
✓ Branch 3 taken 97560 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✓ Branch 6 taken 33880 times.
✓ Branch 7 taken 16940 times.
✓ Branch 8 taken 101640 times.
✓ Branch 9 taken 50820 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
32696492 for (int eqIdx = 0; eqIdx < numEq; ++ eqIdx)
102 44307028 setDirichlet(eqIdx);
103 }
104
105 /*!
106 * \brief Set all boundary conditions to Dirichlet-like coupling
107 */
108 void setAllCouplingDirichlet()
109 {
110 for (int eqIdx = 0; eqIdx < numEq; ++eqIdx)
111 setCouplingDirichlet(eqIdx);
112 }
113
114 /*!
115 * \brief Set all boundary conditions to Neumann-like coupling.
116 */
117 void setAllCouplingNeumann()
118 {
119
2/2
✓ Branch 0 taken 419816 times.
✓ Branch 1 taken 197412 times.
617228 for (int eqIdx = 0; eqIdx < numEq; ++eqIdx)
120 839632 setCouplingNeumann(eqIdx);
121 }
122
123 /*!
124 * \brief Set a Neumann boundary condition for a single equation.
125 *
126 * \param eqIdx The index of the equation
127 */
128 void setNeumann(int eqIdx)
129 {
130
23/24
✓ Branch 0 taken 1054702 times.
✓ Branch 1 taken 1345788 times.
✓ Branch 2 taken 1477853 times.
✓ Branch 3 taken 5091234 times.
✓ Branch 4 taken 28769 times.
✓ Branch 5 taken 179395 times.
✓ Branch 6 taken 184229 times.
✓ Branch 7 taken 579386 times.
✓ Branch 8 taken 11315 times.
✓ Branch 9 taken 4086490 times.
✓ Branch 10 taken 26027 times.
✓ Branch 11 taken 260703 times.
✓ Branch 12 taken 12256 times.
✓ Branch 13 taken 72944 times.
✓ Branch 14 taken 465 times.
✓ Branch 15 taken 4828 times.
✓ Branch 16 taken 213 times.
✓ Branch 17 taken 7271 times.
✓ Branch 18 taken 1860 times.
✓ Branch 19 taken 412 times.
✓ Branch 20 taken 2206 times.
✓ Branch 21 taken 5410 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 8 times.
98251014 resetEq(eqIdx);
131
23/24
✓ Branch 0 taken 1054702 times.
✓ Branch 1 taken 1345788 times.
✓ Branch 2 taken 1477853 times.
✓ Branch 3 taken 5091234 times.
✓ Branch 4 taken 28769 times.
✓ Branch 5 taken 179395 times.
✓ Branch 6 taken 184229 times.
✓ Branch 7 taken 579386 times.
✓ Branch 8 taken 11315 times.
✓ Branch 9 taken 4086490 times.
✓ Branch 10 taken 26027 times.
✓ Branch 11 taken 260703 times.
✓ Branch 12 taken 12256 times.
✓ Branch 13 taken 72944 times.
✓ Branch 14 taken 465 times.
✓ Branch 15 taken 4828 times.
✓ Branch 16 taken 213 times.
✓ Branch 17 taken 7271 times.
✓ Branch 18 taken 1860 times.
✓ Branch 19 taken 412 times.
✓ Branch 20 taken 2206 times.
✓ Branch 21 taken 5410 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 8 times.
98251014 boundaryInfo_[eqIdx].visited = true;
132
46/48
✓ Branch 0 taken 1054702 times.
✓ Branch 1 taken 1345788 times.
✓ Branch 2 taken 1054702 times.
✓ Branch 3 taken 1345788 times.
✓ Branch 4 taken 1477853 times.
✓ Branch 5 taken 5091234 times.
✓ Branch 6 taken 1477853 times.
✓ Branch 7 taken 5091234 times.
✓ Branch 8 taken 28769 times.
✓ Branch 9 taken 179395 times.
✓ Branch 10 taken 28769 times.
✓ Branch 11 taken 179395 times.
✓ Branch 12 taken 184229 times.
✓ Branch 13 taken 579386 times.
✓ Branch 14 taken 184229 times.
✓ Branch 15 taken 579386 times.
✓ Branch 16 taken 11315 times.
✓ Branch 17 taken 4086490 times.
✓ Branch 18 taken 11315 times.
✓ Branch 19 taken 4086490 times.
✓ Branch 20 taken 26027 times.
✓ Branch 21 taken 260703 times.
✓ Branch 22 taken 26027 times.
✓ Branch 23 taken 260703 times.
✓ Branch 24 taken 12256 times.
✓ Branch 25 taken 72944 times.
✓ Branch 26 taken 12256 times.
✓ Branch 27 taken 72944 times.
✓ Branch 28 taken 465 times.
✓ Branch 29 taken 4828 times.
✓ Branch 30 taken 465 times.
✓ Branch 31 taken 4828 times.
✓ Branch 32 taken 213 times.
✓ Branch 33 taken 7271 times.
✓ Branch 34 taken 213 times.
✓ Branch 35 taken 7271 times.
✓ Branch 36 taken 1860 times.
✓ Branch 37 taken 412 times.
✓ Branch 38 taken 1860 times.
✓ Branch 39 taken 412 times.
✓ Branch 40 taken 2206 times.
✓ Branch 41 taken 5410 times.
✓ Branch 42 taken 2206 times.
✓ Branch 43 taken 5410 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 8 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 8 times.
196502028 boundaryInfo_[eqIdx].isNeumann = true;
133 }
134
135 /*!
136 * \brief Set a Dirichlet boundary condition for a single primary
137 * variable
138 *
139 * \param pvIdx The index of the primary variable for which the
140 * Dirichlet condition should apply.
141 * \param eqIdx The index of the equation which should used to set
142 * the Dirichlet condition
143 */
144 void setDirichlet(int pvIdx, int eqIdx)
145 {
146 2762145364 resetEq(eqIdx);
147
8/12
✓ Branch 0 taken 223206 times.
✓ Branch 1 taken 206734 times.
✓ Branch 2 taken 207061 times.
✓ Branch 3 taken 192524 times.
✓ Branch 4 taken 40230 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 56224 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 15624 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 12894 times.
✗ Branch 11 not taken.
1381059618 boundaryInfo_[eqIdx].visited = true;
148
8/12
✓ Branch 0 taken 223206 times.
✓ Branch 1 taken 206734 times.
✓ Branch 2 taken 207061 times.
✓ Branch 3 taken 192524 times.
✓ Branch 4 taken 40230 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 56224 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 15624 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 12894 times.
✗ Branch 11 not taken.
1381059618 boundaryInfo_[eqIdx].isDirichlet = true;
149
150 // update the equation <-> primary variable mapping
151
8/12
✓ Branch 0 taken 223206 times.
✓ Branch 1 taken 206734 times.
✓ Branch 2 taken 207061 times.
✓ Branch 3 taken 192524 times.
✓ Branch 4 taken 40230 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 56224 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 15624 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 12894 times.
✗ Branch 11 not taken.
1381059618 eq2pvIdx_[eqIdx] = pvIdx;
152
8/12
✓ Branch 0 taken 223206 times.
✓ Branch 1 taken 206734 times.
✓ Branch 2 taken 207061 times.
✓ Branch 3 taken 192524 times.
✓ Branch 4 taken 40230 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 56224 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 15624 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 12894 times.
✗ Branch 11 not taken.
1381059618 pv2eqIdx_[pvIdx] = eqIdx;
153 }
154
155 /*!
156 * \brief Set a boundary condition for a single equation to
157 * a Dirichlet-like coupling condition.
158 */
159 void setCouplingDirichlet(int eqIdx)
160 {
161 resetEq(eqIdx);
162 boundaryInfo_[eqIdx].visited = true;
163 boundaryInfo_[eqIdx].isCouplingDirichlet = true;
164 boundaryInfo_[eqIdx].isDirichlet = true;
165 }
166
167 /*!
168 * \brief Set a boundary condition for a single equation to
169 * a Neumann-like coupling condition.
170 */
171 void setCouplingNeumann(int eqIdx)
172 {
173 3568692 resetEq(eqIdx);
174 3568692 boundaryInfo_[eqIdx].visited = true;
175 3568692 boundaryInfo_[eqIdx].isCouplingNeumann = true;
176 7137384 boundaryInfo_[eqIdx].isNeumann = true;
177 }
178
179 /*!
180 * \brief Set a Dirichlet boundary condition for a single primary
181 * variable.
182 *
183 * Depending on the discretization, setting the Dirichlet condition
184 * will replace the balance equation with index equal to pvIdx.
185 *
186 * \param pvIdx The index of the primary variable inside a
187 * PrimaryVariables object.
188 */
189 void setDirichlet(int pvIdx)
190 {
191
16/24
✓ Branch 0 taken 223206 times.
✓ Branch 1 taken 206734 times.
✓ Branch 2 taken 223206 times.
✓ Branch 3 taken 206734 times.
✓ Branch 4 taken 207061 times.
✓ Branch 5 taken 192524 times.
✓ Branch 6 taken 207061 times.
✓ Branch 7 taken 192524 times.
✓ Branch 8 taken 40230 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 40230 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 56224 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 56224 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 15624 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 15624 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 12894 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 12894 times.
✗ Branch 23 not taken.
2762119236 setDirichlet(pvIdx, pvIdx);
192 }
193
194 /*!
195 * \brief Returns true if an equation is used to specify a
196 * Dirichlet condition.
197 *
198 * \param eqIdx The index of the equation
199 */
200 bool isDirichlet(unsigned eqIdx) const
201
88/568
✓ Branch 0 taken 8372150 times.
✓ Branch 1 taken 7272568 times.
✓ Branch 2 taken 8372150 times.
✓ Branch 3 taken 7272568 times.
✓ Branch 4 taken 147482 times.
✓ Branch 5 taken 8653808 times.
✓ Branch 6 taken 147482 times.
✓ Branch 7 taken 8653808 times.
✓ Branch 8 taken 2240 times.
✓ Branch 9 taken 162468 times.
✓ Branch 10 taken 2240 times.
✓ Branch 11 taken 162468 times.
✓ Branch 12 taken 242148 times.
✓ Branch 13 taken 278802 times.
✓ Branch 14 taken 242148 times.
✓ Branch 15 taken 278802 times.
✓ Branch 16 taken 260996 times.
✓ Branch 17 taken 11338759 times.
✓ Branch 18 taken 260996 times.
✓ Branch 19 taken 11338759 times.
✓ Branch 20 taken 445040 times.
✓ Branch 21 taken 389144 times.
✓ Branch 22 taken 445040 times.
✓ Branch 23 taken 389144 times.
✓ Branch 24 taken 640263 times.
✓ Branch 25 taken 48501 times.
✓ Branch 26 taken 640263 times.
✓ Branch 27 taken 48501 times.
✓ Branch 28 taken 47211 times.
✓ Branch 29 taken 2334337 times.
✓ Branch 30 taken 47211 times.
✓ Branch 31 taken 2334337 times.
✓ Branch 32 taken 5603467 times.
✓ Branch 33 taken 229691 times.
✓ Branch 34 taken 5603467 times.
✓ Branch 35 taken 229691 times.
✓ Branch 36 taken 9309052 times.
✓ Branch 37 taken 4387859 times.
✓ Branch 38 taken 9309052 times.
✓ Branch 39 taken 4387859 times.
✓ Branch 40 taken 5188478 times.
✓ Branch 41 taken 2333 times.
✓ Branch 42 taken 5188478 times.
✓ Branch 43 taken 2333 times.
✓ Branch 44 taken 7929678 times.
✓ Branch 45 taken 6783665 times.
✓ Branch 46 taken 7929678 times.
✓ Branch 47 taken 6783665 times.
✓ Branch 48 taken 5537499 times.
✓ Branch 49 taken 7689198 times.
✓ Branch 50 taken 5537499 times.
✓ Branch 51 taken 7689198 times.
✓ Branch 52 taken 5295708 times.
✓ Branch 53 taken 3938899 times.
✓ Branch 54 taken 5295708 times.
✓ Branch 55 taken 3938899 times.
✓ Branch 56 taken 4105452 times.
✓ Branch 57 taken 4505514 times.
✓ Branch 58 taken 4105452 times.
✓ Branch 59 taken 4505514 times.
✓ Branch 60 taken 955400 times.
✓ Branch 61 taken 1806142 times.
✓ Branch 62 taken 955400 times.
✓ Branch 63 taken 1806142 times.
✓ Branch 64 taken 392548 times.
✓ Branch 65 taken 101257 times.
✓ Branch 66 taken 392548 times.
✓ Branch 67 taken 101257 times.
✓ Branch 68 taken 498250 times.
✓ Branch 69 taken 153286 times.
✓ Branch 70 taken 498250 times.
✓ Branch 71 taken 153286 times.
✓ Branch 72 taken 261782 times.
✓ Branch 73 taken 42592 times.
✓ Branch 74 taken 261782 times.
✓ Branch 75 taken 42592 times.
✓ Branch 76 taken 565990 times.
✓ Branch 77 taken 561258 times.
✓ Branch 78 taken 565990 times.
✓ Branch 79 taken 561258 times.
✓ Branch 80 taken 183144 times.
✓ Branch 81 taken 302932 times.
✓ Branch 82 taken 183144 times.
✓ Branch 83 taken 302932 times.
✓ Branch 84 taken 15946 times.
✓ Branch 85 taken 28278 times.
✓ Branch 86 taken 15946 times.
✓ Branch 87 taken 28278 times.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 93 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 96 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 103 not taken.
✗ Branch 104 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✗ Branch 107 not taken.
✗ Branch 108 not taken.
✗ Branch 109 not taken.
✗ Branch 110 not taken.
✗ Branch 111 not taken.
✗ Branch 112 not taken.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✗ Branch 116 not taken.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✗ Branch 120 not taken.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✗ Branch 123 not taken.
✗ Branch 124 not taken.
✗ Branch 125 not taken.
✗ Branch 126 not taken.
✗ Branch 127 not taken.
✗ Branch 128 not taken.
✗ Branch 129 not taken.
✗ Branch 130 not taken.
✗ Branch 131 not taken.
✗ Branch 132 not taken.
✗ Branch 133 not taken.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 137 not taken.
✗ Branch 138 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
✗ Branch 141 not taken.
✗ Branch 142 not taken.
✗ Branch 143 not taken.
✗ Branch 144 not taken.
✗ Branch 145 not taken.
✗ Branch 146 not taken.
✗ Branch 147 not taken.
✗ Branch 148 not taken.
✗ Branch 149 not taken.
✗ Branch 150 not taken.
✗ Branch 151 not taken.
✗ Branch 152 not taken.
✗ Branch 153 not taken.
✗ Branch 154 not taken.
✗ Branch 155 not taken.
✗ Branch 156 not taken.
✗ Branch 157 not taken.
✗ Branch 158 not taken.
✗ Branch 159 not taken.
✗ Branch 160 not taken.
✗ Branch 161 not taken.
✗ Branch 162 not taken.
✗ Branch 163 not taken.
✗ Branch 164 not taken.
✗ Branch 165 not taken.
✗ Branch 166 not taken.
✗ Branch 167 not taken.
✗ Branch 168 not taken.
✗ Branch 169 not taken.
✗ Branch 170 not taken.
✗ Branch 171 not taken.
✗ Branch 172 not taken.
✗ Branch 173 not taken.
✗ Branch 174 not taken.
✗ Branch 175 not taken.
✗ Branch 176 not taken.
✗ Branch 177 not taken.
✗ Branch 178 not taken.
✗ Branch 179 not taken.
✗ Branch 180 not taken.
✗ Branch 181 not taken.
✗ Branch 182 not taken.
✗ Branch 183 not taken.
✗ Branch 184 not taken.
✗ Branch 185 not taken.
✗ Branch 186 not taken.
✗ Branch 187 not taken.
✗ Branch 188 not taken.
✗ Branch 189 not taken.
✗ Branch 190 not taken.
✗ Branch 191 not taken.
✗ Branch 192 not taken.
✗ Branch 193 not taken.
✗ Branch 194 not taken.
✗ Branch 195 not taken.
✗ Branch 196 not taken.
✗ Branch 197 not taken.
✗ Branch 198 not taken.
✗ Branch 199 not taken.
✗ Branch 200 not taken.
✗ Branch 201 not taken.
✗ Branch 202 not taken.
✗ Branch 203 not taken.
✗ Branch 204 not taken.
✗ Branch 205 not taken.
✗ Branch 206 not taken.
✗ Branch 207 not taken.
✗ Branch 208 not taken.
✗ Branch 209 not taken.
✗ Branch 210 not taken.
✗ Branch 211 not taken.
✗ Branch 212 not taken.
✗ Branch 213 not taken.
✗ Branch 214 not taken.
✗ Branch 215 not taken.
✗ Branch 216 not taken.
✗ Branch 217 not taken.
✗ Branch 218 not taken.
✗ Branch 219 not taken.
✗ Branch 220 not taken.
✗ Branch 221 not taken.
✗ Branch 222 not taken.
✗ Branch 223 not taken.
✗ Branch 224 not taken.
✗ Branch 225 not taken.
✗ Branch 226 not taken.
✗ Branch 227 not taken.
✗ Branch 228 not taken.
✗ Branch 229 not taken.
✗ Branch 230 not taken.
✗ Branch 231 not taken.
✗ Branch 232 not taken.
✗ Branch 233 not taken.
✗ Branch 234 not taken.
✗ Branch 235 not taken.
✗ Branch 236 not taken.
✗ Branch 237 not taken.
✗ Branch 238 not taken.
✗ Branch 239 not taken.
✗ Branch 240 not taken.
✗ Branch 241 not taken.
✗ Branch 242 not taken.
✗ Branch 243 not taken.
✗ Branch 244 not taken.
✗ Branch 245 not taken.
✗ Branch 246 not taken.
✗ Branch 247 not taken.
✗ Branch 248 not taken.
✗ Branch 249 not taken.
✗ Branch 250 not taken.
✗ Branch 251 not taken.
✗ Branch 252 not taken.
✗ Branch 253 not taken.
✗ Branch 254 not taken.
✗ Branch 255 not taken.
✗ Branch 256 not taken.
✗ Branch 257 not taken.
✗ Branch 258 not taken.
✗ Branch 259 not taken.
✗ Branch 260 not taken.
✗ Branch 261 not taken.
✗ Branch 262 not taken.
✗ Branch 263 not taken.
✗ Branch 264 not taken.
✗ Branch 265 not taken.
✗ Branch 266 not taken.
✗ Branch 267 not taken.
✗ Branch 268 not taken.
✗ Branch 269 not taken.
✗ Branch 270 not taken.
✗ Branch 271 not taken.
✗ Branch 272 not taken.
✗ Branch 273 not taken.
✗ Branch 274 not taken.
✗ Branch 275 not taken.
✗ Branch 276 not taken.
✗ Branch 277 not taken.
✗ Branch 278 not taken.
✗ Branch 279 not taken.
✗ Branch 280 not taken.
✗ Branch 281 not taken.
✗ Branch 282 not taken.
✗ Branch 283 not taken.
✗ Branch 284 not taken.
✗ Branch 285 not taken.
✗ Branch 286 not taken.
✗ Branch 287 not taken.
✗ Branch 288 not taken.
✗ Branch 289 not taken.
✗ Branch 290 not taken.
✗ Branch 291 not taken.
✗ Branch 292 not taken.
✗ Branch 293 not taken.
✗ Branch 294 not taken.
✗ Branch 295 not taken.
✗ Branch 296 not taken.
✗ Branch 297 not taken.
✗ Branch 298 not taken.
✗ Branch 299 not taken.
✗ Branch 300 not taken.
✗ Branch 301 not taken.
✗ Branch 302 not taken.
✗ Branch 303 not taken.
✗ Branch 304 not taken.
✗ Branch 305 not taken.
✗ Branch 306 not taken.
✗ Branch 307 not taken.
✗ Branch 308 not taken.
✗ Branch 309 not taken.
✗ Branch 310 not taken.
✗ Branch 311 not taken.
✗ Branch 312 not taken.
✗ Branch 313 not taken.
✗ Branch 314 not taken.
✗ Branch 315 not taken.
✗ Branch 316 not taken.
✗ Branch 317 not taken.
✗ Branch 318 not taken.
✗ Branch 319 not taken.
✗ Branch 320 not taken.
✗ Branch 321 not taken.
✗ Branch 322 not taken.
✗ Branch 323 not taken.
✗ Branch 324 not taken.
✗ Branch 325 not taken.
✗ Branch 326 not taken.
✗ Branch 327 not taken.
✗ Branch 328 not taken.
✗ Branch 329 not taken.
✗ Branch 330 not taken.
✗ Branch 331 not taken.
✗ Branch 332 not taken.
✗ Branch 333 not taken.
✗ Branch 334 not taken.
✗ Branch 335 not taken.
✗ Branch 336 not taken.
✗ Branch 337 not taken.
✗ Branch 338 not taken.
✗ Branch 339 not taken.
✗ Branch 340 not taken.
✗ Branch 341 not taken.
✗ Branch 342 not taken.
✗ Branch 343 not taken.
✗ Branch 344 not taken.
✗ Branch 345 not taken.
✗ Branch 346 not taken.
✗ Branch 347 not taken.
✗ Branch 348 not taken.
✗ Branch 349 not taken.
✗ Branch 350 not taken.
✗ Branch 351 not taken.
✗ Branch 352 not taken.
✗ Branch 353 not taken.
✗ Branch 354 not taken.
✗ Branch 355 not taken.
✗ Branch 356 not taken.
✗ Branch 357 not taken.
✗ Branch 358 not taken.
✗ Branch 359 not taken.
✗ Branch 360 not taken.
✗ Branch 361 not taken.
✗ Branch 362 not taken.
✗ Branch 363 not taken.
✗ Branch 364 not taken.
✗ Branch 365 not taken.
✗ Branch 366 not taken.
✗ Branch 367 not taken.
✗ Branch 368 not taken.
✗ Branch 369 not taken.
✗ Branch 370 not taken.
✗ Branch 371 not taken.
✗ Branch 372 not taken.
✗ Branch 373 not taken.
✗ Branch 374 not taken.
✗ Branch 375 not taken.
✗ Branch 376 not taken.
✗ Branch 377 not taken.
✗ Branch 378 not taken.
✗ Branch 379 not taken.
✗ Branch 380 not taken.
✗ Branch 381 not taken.
✗ Branch 382 not taken.
✗ Branch 383 not taken.
✗ Branch 384 not taken.
✗ Branch 385 not taken.
✗ Branch 386 not taken.
✗ Branch 387 not taken.
✗ Branch 388 not taken.
✗ Branch 389 not taken.
✗ Branch 390 not taken.
✗ Branch 391 not taken.
✗ Branch 392 not taken.
✗ Branch 393 not taken.
✗ Branch 394 not taken.
✗ Branch 395 not taken.
✗ Branch 396 not taken.
✗ Branch 397 not taken.
✗ Branch 398 not taken.
✗ Branch 399 not taken.
✗ Branch 400 not taken.
✗ Branch 401 not taken.
✗ Branch 402 not taken.
✗ Branch 403 not taken.
✗ Branch 404 not taken.
✗ Branch 405 not taken.
✗ Branch 406 not taken.
✗ Branch 407 not taken.
✗ Branch 408 not taken.
✗ Branch 409 not taken.
✗ Branch 410 not taken.
✗ Branch 411 not taken.
✗ Branch 412 not taken.
✗ Branch 413 not taken.
✗ Branch 414 not taken.
✗ Branch 415 not taken.
✗ Branch 416 not taken.
✗ Branch 417 not taken.
✗ Branch 418 not taken.
✗ Branch 419 not taken.
✗ Branch 420 not taken.
✗ Branch 421 not taken.
✗ Branch 422 not taken.
✗ Branch 423 not taken.
✗ Branch 424 not taken.
✗ Branch 425 not taken.
✗ Branch 426 not taken.
✗ Branch 427 not taken.
✗ Branch 428 not taken.
✗ Branch 429 not taken.
✗ Branch 430 not taken.
✗ Branch 431 not taken.
✗ Branch 432 not taken.
✗ Branch 433 not taken.
✗ Branch 434 not taken.
✗ Branch 435 not taken.
✗ Branch 436 not taken.
✗ Branch 437 not taken.
✗ Branch 438 not taken.
✗ Branch 439 not taken.
✗ Branch 440 not taken.
✗ Branch 441 not taken.
✗ Branch 442 not taken.
✗ Branch 443 not taken.
✗ Branch 444 not taken.
✗ Branch 445 not taken.
✗ Branch 446 not taken.
✗ Branch 447 not taken.
✗ Branch 448 not taken.
✗ Branch 449 not taken.
✗ Branch 450 not taken.
✗ Branch 451 not taken.
✗ Branch 452 not taken.
✗ Branch 453 not taken.
✗ Branch 454 not taken.
✗ Branch 455 not taken.
✗ Branch 456 not taken.
✗ Branch 457 not taken.
✗ Branch 458 not taken.
✗ Branch 459 not taken.
✗ Branch 460 not taken.
✗ Branch 461 not taken.
✗ Branch 462 not taken.
✗ Branch 463 not taken.
✗ Branch 464 not taken.
✗ Branch 465 not taken.
✗ Branch 466 not taken.
✗ Branch 467 not taken.
✗ Branch 468 not taken.
✗ Branch 469 not taken.
✗ Branch 470 not taken.
✗ Branch 471 not taken.
✗ Branch 472 not taken.
✗ Branch 473 not taken.
✗ Branch 474 not taken.
✗ Branch 475 not taken.
✗ Branch 476 not taken.
✗ Branch 477 not taken.
✗ Branch 478 not taken.
✗ Branch 479 not taken.
✗ Branch 480 not taken.
✗ Branch 481 not taken.
✗ Branch 482 not taken.
✗ Branch 483 not taken.
✗ Branch 484 not taken.
✗ Branch 485 not taken.
✗ Branch 486 not taken.
✗ Branch 487 not taken.
✗ Branch 488 not taken.
✗ Branch 489 not taken.
✗ Branch 490 not taken.
✗ Branch 491 not taken.
✗ Branch 492 not taken.
✗ Branch 493 not taken.
✗ Branch 494 not taken.
✗ Branch 495 not taken.
✗ Branch 496 not taken.
✗ Branch 497 not taken.
✗ Branch 498 not taken.
✗ Branch 499 not taken.
✗ Branch 500 not taken.
✗ Branch 501 not taken.
✗ Branch 502 not taken.
✗ Branch 503 not taken.
✗ Branch 504 not taken.
✗ Branch 505 not taken.
✗ Branch 506 not taken.
✗ Branch 507 not taken.
✗ Branch 508 not taken.
✗ Branch 509 not taken.
✗ Branch 510 not taken.
✗ Branch 511 not taken.
✗ Branch 512 not taken.
✗ Branch 513 not taken.
✗ Branch 514 not taken.
✗ Branch 515 not taken.
✗ Branch 516 not taken.
✗ Branch 517 not taken.
✗ Branch 518 not taken.
✗ Branch 519 not taken.
✗ Branch 520 not taken.
✗ Branch 521 not taken.
✗ Branch 522 not taken.
✗ Branch 523 not taken.
✗ Branch 524 not taken.
✗ Branch 525 not taken.
✗ Branch 526 not taken.
✗ Branch 527 not taken.
✗ Branch 528 not taken.
✗ Branch 529 not taken.
✗ Branch 530 not taken.
✗ Branch 531 not taken.
✗ Branch 532 not taken.
✗ Branch 533 not taken.
✗ Branch 534 not taken.
✗ Branch 535 not taken.
✗ Branch 536 not taken.
✗ Branch 537 not taken.
✗ Branch 538 not taken.
✗ Branch 539 not taken.
✗ Branch 540 not taken.
✗ Branch 541 not taken.
✗ Branch 542 not taken.
✗ Branch 543 not taken.
✗ Branch 544 not taken.
✗ Branch 545 not taken.
✗ Branch 546 not taken.
✗ Branch 547 not taken.
✗ Branch 548 not taken.
✗ Branch 549 not taken.
✗ Branch 550 not taken.
✗ Branch 551 not taken.
✗ Branch 552 not taken.
✗ Branch 553 not taken.
✗ Branch 554 not taken.
✗ Branch 555 not taken.
✗ Branch 556 not taken.
✗ Branch 557 not taken.
✗ Branch 558 not taken.
✗ Branch 559 not taken.
✗ Branch 560 not taken.
✗ Branch 561 not taken.
✗ Branch 562 not taken.
✗ Branch 563 not taken.
✗ Branch 564 not taken.
✗ Branch 565 not taken.
✗ Branch 566 not taken.
✗ Branch 567 not taken.
232742738 { return boundaryInfo_[eqIdx].isDirichlet ||
202
74/568
✗ Branch 0 not taken.
✓ Branch 1 taken 8372150 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 8372150 times.
✓ Branch 4 taken 148 times.
✓ Branch 5 taken 2240 times.
✓ Branch 6 taken 148 times.
✓ Branch 7 taken 2240 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✓ Branch 16 taken 255739 times.
✓ Branch 17 taken 86616 times.
✓ Branch 18 taken 255739 times.
✓ Branch 19 taken 86616 times.
✓ Branch 20 taken 346643 times.
✓ Branch 21 taken 249808 times.
✓ Branch 22 taken 346643 times.
✓ Branch 23 taken 249808 times.
✓ Branch 24 taken 346528 times.
✓ Branch 25 taken 165376 times.
✓ Branch 26 taken 346528 times.
✓ Branch 27 taken 165376 times.
✓ Branch 28 taken 13488 times.
✓ Branch 29 taken 33608 times.
✓ Branch 30 taken 13488 times.
✓ Branch 31 taken 33608 times.
✓ Branch 32 taken 5526911 times.
✓ Branch 33 taken 76556 times.
✓ Branch 34 taken 5526911 times.
✓ Branch 35 taken 76556 times.
✓ Branch 36 taken 8854829 times.
✗ Branch 37 not taken.
✓ Branch 38 taken 8854829 times.
✗ Branch 39 not taken.
✓ Branch 40 taken 5188463 times.
✓ Branch 41 taken 350 times.
✓ Branch 42 taken 5188463 times.
✓ Branch 43 taken 350 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 7929328 times.
✗ Branch 46 not taken.
✓ Branch 47 taken 7929328 times.
✓ Branch 48 taken 3578348 times.
✓ Branch 49 taken 1959155 times.
✓ Branch 50 taken 3578348 times.
✓ Branch 51 taken 1959155 times.
✓ Branch 52 taken 1048768 times.
✓ Branch 53 taken 4246940 times.
✓ Branch 54 taken 1048768 times.
✓ Branch 55 taken 4246940 times.
✓ Branch 56 taken 2529168 times.
✓ Branch 57 taken 1576284 times.
✓ Branch 58 taken 2529168 times.
✓ Branch 59 taken 1576284 times.
✓ Branch 60 taken 747832 times.
✓ Branch 61 taken 207568 times.
✓ Branch 62 taken 747832 times.
✓ Branch 63 taken 207568 times.
✓ Branch 64 taken 342712 times.
✓ Branch 65 taken 49832 times.
✓ Branch 66 taken 342712 times.
✓ Branch 67 taken 49832 times.
✓ Branch 68 taken 101256 times.
✓ Branch 69 taken 396994 times.
✓ Branch 70 taken 101256 times.
✓ Branch 71 taken 396994 times.
✓ Branch 72 taken 153286 times.
✓ Branch 73 taken 108496 times.
✓ Branch 74 taken 153286 times.
✓ Branch 75 taken 108496 times.
✓ Branch 76 taken 564838 times.
✓ Branch 77 taken 1152 times.
✓ Branch 78 taken 564838 times.
✓ Branch 79 taken 1152 times.
✓ Branch 80 taken 145548 times.
✓ Branch 81 taken 37596 times.
✓ Branch 82 taken 145548 times.
✓ Branch 83 taken 37596 times.
✓ Branch 84 taken 3734 times.
✓ Branch 85 taken 12212 times.
✓ Branch 86 taken 3734 times.
✓ Branch 87 taken 12212 times.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 93 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 96 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 103 not taken.
✗ Branch 104 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✗ Branch 107 not taken.
✗ Branch 108 not taken.
✗ Branch 109 not taken.
✗ Branch 110 not taken.
✗ Branch 111 not taken.
✗ Branch 112 not taken.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✗ Branch 116 not taken.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✗ Branch 120 not taken.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✗ Branch 123 not taken.
✗ Branch 124 not taken.
✗ Branch 125 not taken.
✗ Branch 126 not taken.
✗ Branch 127 not taken.
✗ Branch 128 not taken.
✗ Branch 129 not taken.
✗ Branch 130 not taken.
✗ Branch 131 not taken.
✗ Branch 132 not taken.
✗ Branch 133 not taken.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 137 not taken.
✗ Branch 138 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
✗ Branch 141 not taken.
✗ Branch 142 not taken.
✗ Branch 143 not taken.
✗ Branch 144 not taken.
✗ Branch 145 not taken.
✗ Branch 146 not taken.
✗ Branch 147 not taken.
✗ Branch 148 not taken.
✗ Branch 149 not taken.
✗ Branch 150 not taken.
✗ Branch 151 not taken.
✗ Branch 152 not taken.
✗ Branch 153 not taken.
✗ Branch 154 not taken.
✗ Branch 155 not taken.
✗ Branch 156 not taken.
✗ Branch 157 not taken.
✗ Branch 158 not taken.
✗ Branch 159 not taken.
✗ Branch 160 not taken.
✗ Branch 161 not taken.
✗ Branch 162 not taken.
✗ Branch 163 not taken.
✗ Branch 164 not taken.
✗ Branch 165 not taken.
✗ Branch 166 not taken.
✗ Branch 167 not taken.
✗ Branch 168 not taken.
✗ Branch 169 not taken.
✗ Branch 170 not taken.
✗ Branch 171 not taken.
✗ Branch 172 not taken.
✗ Branch 173 not taken.
✗ Branch 174 not taken.
✗ Branch 175 not taken.
✗ Branch 176 not taken.
✗ Branch 177 not taken.
✗ Branch 178 not taken.
✗ Branch 179 not taken.
✗ Branch 180 not taken.
✗ Branch 181 not taken.
✗ Branch 182 not taken.
✗ Branch 183 not taken.
✗ Branch 184 not taken.
✗ Branch 185 not taken.
✗ Branch 186 not taken.
✗ Branch 187 not taken.
✗ Branch 188 not taken.
✗ Branch 189 not taken.
✗ Branch 190 not taken.
✗ Branch 191 not taken.
✗ Branch 192 not taken.
✗ Branch 193 not taken.
✗ Branch 194 not taken.
✗ Branch 195 not taken.
✗ Branch 196 not taken.
✗ Branch 197 not taken.
✗ Branch 198 not taken.
✗ Branch 199 not taken.
✗ Branch 200 not taken.
✗ Branch 201 not taken.
✗ Branch 202 not taken.
✗ Branch 203 not taken.
✗ Branch 204 not taken.
✗ Branch 205 not taken.
✗ Branch 206 not taken.
✗ Branch 207 not taken.
✗ Branch 208 not taken.
✗ Branch 209 not taken.
✗ Branch 210 not taken.
✗ Branch 211 not taken.
✗ Branch 212 not taken.
✗ Branch 213 not taken.
✗ Branch 214 not taken.
✗ Branch 215 not taken.
✗ Branch 216 not taken.
✗ Branch 217 not taken.
✗ Branch 218 not taken.
✗ Branch 219 not taken.
✗ Branch 220 not taken.
✗ Branch 221 not taken.
✗ Branch 222 not taken.
✗ Branch 223 not taken.
✗ Branch 224 not taken.
✗ Branch 225 not taken.
✗ Branch 226 not taken.
✗ Branch 227 not taken.
✗ Branch 228 not taken.
✗ Branch 229 not taken.
✗ Branch 230 not taken.
✗ Branch 231 not taken.
✗ Branch 232 not taken.
✗ Branch 233 not taken.
✗ Branch 234 not taken.
✗ Branch 235 not taken.
✗ Branch 236 not taken.
✗ Branch 237 not taken.
✗ Branch 238 not taken.
✗ Branch 239 not taken.
✗ Branch 240 not taken.
✗ Branch 241 not taken.
✗ Branch 242 not taken.
✗ Branch 243 not taken.
✗ Branch 244 not taken.
✗ Branch 245 not taken.
✗ Branch 246 not taken.
✗ Branch 247 not taken.
✗ Branch 248 not taken.
✗ Branch 249 not taken.
✗ Branch 250 not taken.
✗ Branch 251 not taken.
✗ Branch 252 not taken.
✗ Branch 253 not taken.
✗ Branch 254 not taken.
✗ Branch 255 not taken.
✗ Branch 256 not taken.
✗ Branch 257 not taken.
✗ Branch 258 not taken.
✗ Branch 259 not taken.
✗ Branch 260 not taken.
✗ Branch 261 not taken.
✗ Branch 262 not taken.
✗ Branch 263 not taken.
✗ Branch 264 not taken.
✗ Branch 265 not taken.
✗ Branch 266 not taken.
✗ Branch 267 not taken.
✗ Branch 268 not taken.
✗ Branch 269 not taken.
✗ Branch 270 not taken.
✗ Branch 271 not taken.
✗ Branch 272 not taken.
✗ Branch 273 not taken.
✗ Branch 274 not taken.
✗ Branch 275 not taken.
✗ Branch 276 not taken.
✗ Branch 277 not taken.
✗ Branch 278 not taken.
✗ Branch 279 not taken.
✗ Branch 280 not taken.
✗ Branch 281 not taken.
✗ Branch 282 not taken.
✗ Branch 283 not taken.
✗ Branch 284 not taken.
✗ Branch 285 not taken.
✗ Branch 286 not taken.
✗ Branch 287 not taken.
✗ Branch 288 not taken.
✗ Branch 289 not taken.
✗ Branch 290 not taken.
✗ Branch 291 not taken.
✗ Branch 292 not taken.
✗ Branch 293 not taken.
✗ Branch 294 not taken.
✗ Branch 295 not taken.
✗ Branch 296 not taken.
✗ Branch 297 not taken.
✗ Branch 298 not taken.
✗ Branch 299 not taken.
✗ Branch 300 not taken.
✗ Branch 301 not taken.
✗ Branch 302 not taken.
✗ Branch 303 not taken.
✗ Branch 304 not taken.
✗ Branch 305 not taken.
✗ Branch 306 not taken.
✗ Branch 307 not taken.
✗ Branch 308 not taken.
✗ Branch 309 not taken.
✗ Branch 310 not taken.
✗ Branch 311 not taken.
✗ Branch 312 not taken.
✗ Branch 313 not taken.
✗ Branch 314 not taken.
✗ Branch 315 not taken.
✗ Branch 316 not taken.
✗ Branch 317 not taken.
✗ Branch 318 not taken.
✗ Branch 319 not taken.
✗ Branch 320 not taken.
✗ Branch 321 not taken.
✗ Branch 322 not taken.
✗ Branch 323 not taken.
✗ Branch 324 not taken.
✗ Branch 325 not taken.
✗ Branch 326 not taken.
✗ Branch 327 not taken.
✗ Branch 328 not taken.
✗ Branch 329 not taken.
✗ Branch 330 not taken.
✗ Branch 331 not taken.
✗ Branch 332 not taken.
✗ Branch 333 not taken.
✗ Branch 334 not taken.
✗ Branch 335 not taken.
✗ Branch 336 not taken.
✗ Branch 337 not taken.
✗ Branch 338 not taken.
✗ Branch 339 not taken.
✗ Branch 340 not taken.
✗ Branch 341 not taken.
✗ Branch 342 not taken.
✗ Branch 343 not taken.
✗ Branch 344 not taken.
✗ Branch 345 not taken.
✗ Branch 346 not taken.
✗ Branch 347 not taken.
✗ Branch 348 not taken.
✗ Branch 349 not taken.
✗ Branch 350 not taken.
✗ Branch 351 not taken.
✗ Branch 352 not taken.
✗ Branch 353 not taken.
✗ Branch 354 not taken.
✗ Branch 355 not taken.
✗ Branch 356 not taken.
✗ Branch 357 not taken.
✗ Branch 358 not taken.
✗ Branch 359 not taken.
✗ Branch 360 not taken.
✗ Branch 361 not taken.
✗ Branch 362 not taken.
✗ Branch 363 not taken.
✗ Branch 364 not taken.
✗ Branch 365 not taken.
✗ Branch 366 not taken.
✗ Branch 367 not taken.
✗ Branch 368 not taken.
✗ Branch 369 not taken.
✗ Branch 370 not taken.
✗ Branch 371 not taken.
✗ Branch 372 not taken.
✗ Branch 373 not taken.
✗ Branch 374 not taken.
✗ Branch 375 not taken.
✗ Branch 376 not taken.
✗ Branch 377 not taken.
✗ Branch 378 not taken.
✗ Branch 379 not taken.
✗ Branch 380 not taken.
✗ Branch 381 not taken.
✗ Branch 382 not taken.
✗ Branch 383 not taken.
✗ Branch 384 not taken.
✗ Branch 385 not taken.
✗ Branch 386 not taken.
✗ Branch 387 not taken.
✗ Branch 388 not taken.
✗ Branch 389 not taken.
✗ Branch 390 not taken.
✗ Branch 391 not taken.
✗ Branch 392 not taken.
✗ Branch 393 not taken.
✗ Branch 394 not taken.
✗ Branch 395 not taken.
✗ Branch 396 not taken.
✗ Branch 397 not taken.
✗ Branch 398 not taken.
✗ Branch 399 not taken.
✗ Branch 400 not taken.
✗ Branch 401 not taken.
✗ Branch 402 not taken.
✗ Branch 403 not taken.
✗ Branch 404 not taken.
✗ Branch 405 not taken.
✗ Branch 406 not taken.
✗ Branch 407 not taken.
✗ Branch 408 not taken.
✗ Branch 409 not taken.
✗ Branch 410 not taken.
✗ Branch 411 not taken.
✗ Branch 412 not taken.
✗ Branch 413 not taken.
✗ Branch 414 not taken.
✗ Branch 415 not taken.
✗ Branch 416 not taken.
✗ Branch 417 not taken.
✗ Branch 418 not taken.
✗ Branch 419 not taken.
✗ Branch 420 not taken.
✗ Branch 421 not taken.
✗ Branch 422 not taken.
✗ Branch 423 not taken.
✗ Branch 424 not taken.
✗ Branch 425 not taken.
✗ Branch 426 not taken.
✗ Branch 427 not taken.
✗ Branch 428 not taken.
✗ Branch 429 not taken.
✗ Branch 430 not taken.
✗ Branch 431 not taken.
✗ Branch 432 not taken.
✗ Branch 433 not taken.
✗ Branch 434 not taken.
✗ Branch 435 not taken.
✗ Branch 436 not taken.
✗ Branch 437 not taken.
✗ Branch 438 not taken.
✗ Branch 439 not taken.
✗ Branch 440 not taken.
✗ Branch 441 not taken.
✗ Branch 442 not taken.
✗ Branch 443 not taken.
✗ Branch 444 not taken.
✗ Branch 445 not taken.
✗ Branch 446 not taken.
✗ Branch 447 not taken.
✗ Branch 448 not taken.
✗ Branch 449 not taken.
✗ Branch 450 not taken.
✗ Branch 451 not taken.
✗ Branch 452 not taken.
✗ Branch 453 not taken.
✗ Branch 454 not taken.
✗ Branch 455 not taken.
✗ Branch 456 not taken.
✗ Branch 457 not taken.
✗ Branch 458 not taken.
✗ Branch 459 not taken.
✗ Branch 460 not taken.
✗ Branch 461 not taken.
✗ Branch 462 not taken.
✗ Branch 463 not taken.
✗ Branch 464 not taken.
✗ Branch 465 not taken.
✗ Branch 466 not taken.
✗ Branch 467 not taken.
✗ Branch 468 not taken.
✗ Branch 469 not taken.
✗ Branch 470 not taken.
✗ Branch 471 not taken.
✗ Branch 472 not taken.
✗ Branch 473 not taken.
✗ Branch 474 not taken.
✗ Branch 475 not taken.
✗ Branch 476 not taken.
✗ Branch 477 not taken.
✗ Branch 478 not taken.
✗ Branch 479 not taken.
✗ Branch 480 not taken.
✗ Branch 481 not taken.
✗ Branch 482 not taken.
✗ Branch 483 not taken.
✗ Branch 484 not taken.
✗ Branch 485 not taken.
✗ Branch 486 not taken.
✗ Branch 487 not taken.
✗ Branch 488 not taken.
✗ Branch 489 not taken.
✗ Branch 490 not taken.
✗ Branch 491 not taken.
✗ Branch 492 not taken.
✗ Branch 493 not taken.
✗ Branch 494 not taken.
✗ Branch 495 not taken.
✗ Branch 496 not taken.
✗ Branch 497 not taken.
✗ Branch 498 not taken.
✗ Branch 499 not taken.
✗ Branch 500 not taken.
✗ Branch 501 not taken.
✗ Branch 502 not taken.
✗ Branch 503 not taken.
✗ Branch 504 not taken.
✗ Branch 505 not taken.
✗ Branch 506 not taken.
✗ Branch 507 not taken.
✗ Branch 508 not taken.
✗ Branch 509 not taken.
✗ Branch 510 not taken.
✗ Branch 511 not taken.
✗ Branch 512 not taken.
✗ Branch 513 not taken.
✗ Branch 514 not taken.
✗ Branch 515 not taken.
✗ Branch 516 not taken.
✗ Branch 517 not taken.
✗ Branch 518 not taken.
✗ Branch 519 not taken.
✗ Branch 520 not taken.
✗ Branch 521 not taken.
✗ Branch 522 not taken.
✗ Branch 523 not taken.
✗ Branch 524 not taken.
✗ Branch 525 not taken.
✗ Branch 526 not taken.
✗ Branch 527 not taken.
✗ Branch 528 not taken.
✗ Branch 529 not taken.
✗ Branch 530 not taken.
✗ Branch 531 not taken.
✗ Branch 532 not taken.
✗ Branch 533 not taken.
✗ Branch 534 not taken.
✗ Branch 535 not taken.
✗ Branch 536 not taken.
✗ Branch 537 not taken.
✗ Branch 538 not taken.
✗ Branch 539 not taken.
✗ Branch 540 not taken.
✗ Branch 541 not taken.
✗ Branch 542 not taken.
✗ Branch 543 not taken.
✗ Branch 544 not taken.
✗ Branch 545 not taken.
✗ Branch 546 not taken.
✗ Branch 547 not taken.
✗ Branch 548 not taken.
✗ Branch 549 not taken.
✗ Branch 550 not taken.
✗ Branch 551 not taken.
✗ Branch 552 not taken.
✗ Branch 553 not taken.
✗ Branch 554 not taken.
✗ Branch 555 not taken.
✗ Branch 556 not taken.
✗ Branch 557 not taken.
✗ Branch 558 not taken.
✗ Branch 559 not taken.
✗ Branch 560 not taken.
✗ Branch 561 not taken.
✗ Branch 562 not taken.
✗ Branch 563 not taken.
✗ Branch 564 not taken.
✗ Branch 565 not taken.
✗ Branch 566 not taken.
✗ Branch 567 not taken.
110521000 boundaryInfo_[eqIdx].isCouplingDirichlet;
203 }
204
205 /*!
206 * \brief Returns true if all equations are used to specify a
207 * Dirichlet condition.
208 */
209 bool hasOnlyDirichlet() const
210 {
211
88/96
✓ Branch 0 taken 523411 times.
✓ Branch 1 taken 2036235 times.
✓ Branch 2 taken 523411 times.
✓ Branch 3 taken 2036235 times.
✓ Branch 4 taken 523411 times.
✓ Branch 5 taken 2036235 times.
✓ Branch 6 taken 523411 times.
✓ Branch 7 taken 2036235 times.
✓ Branch 8 taken 1145858 times.
✓ Branch 9 taken 13842754 times.
✓ Branch 10 taken 1145858 times.
✓ Branch 11 taken 13842754 times.
✓ Branch 12 taken 1145858 times.
✓ Branch 13 taken 13842754 times.
✓ Branch 14 taken 1145858 times.
✓ Branch 15 taken 13842754 times.
✓ Branch 16 taken 380328 times.
✓ Branch 17 taken 2962542 times.
✓ Branch 18 taken 380328 times.
✓ Branch 19 taken 2962542 times.
✓ Branch 20 taken 380328 times.
✓ Branch 21 taken 2962542 times.
✓ Branch 22 taken 380328 times.
✓ Branch 23 taken 2962542 times.
✓ Branch 24 taken 404000 times.
✓ Branch 25 taken 2760578 times.
✓ Branch 26 taken 404000 times.
✓ Branch 27 taken 2760578 times.
✓ Branch 28 taken 404000 times.
✓ Branch 29 taken 2760578 times.
✓ Branch 30 taken 404000 times.
✓ Branch 31 taken 2760578 times.
✓ Branch 32 taken 7493 times.
✓ Branch 33 taken 12451 times.
✓ Branch 34 taken 7493 times.
✓ Branch 35 taken 12451 times.
✓ Branch 36 taken 7493 times.
✓ Branch 37 taken 12451 times.
✓ Branch 38 taken 7493 times.
✓ Branch 39 taken 12451 times.
✓ Branch 40 taken 520 times.
✓ Branch 41 taken 1952 times.
✓ Branch 42 taken 520 times.
✓ Branch 43 taken 1952 times.
✓ Branch 44 taken 520 times.
✓ Branch 45 taken 1952 times.
✓ Branch 46 taken 520 times.
✓ Branch 47 taken 1952 times.
✓ Branch 48 taken 15 times.
✓ Branch 49 taken 6685 times.
✓ Branch 50 taken 15 times.
✓ Branch 51 taken 6685 times.
✓ Branch 52 taken 15 times.
✓ Branch 53 taken 6685 times.
✓ Branch 54 taken 15 times.
✓ Branch 55 taken 6685 times.
✓ Branch 56 taken 380 times.
✓ Branch 57 taken 1412 times.
✓ Branch 58 taken 380 times.
✓ Branch 59 taken 1412 times.
✓ Branch 60 taken 380 times.
✓ Branch 61 taken 1412 times.
✓ Branch 62 taken 380 times.
✓ Branch 63 taken 1412 times.
✓ Branch 64 taken 120 times.
✓ Branch 65 taken 440 times.
✓ Branch 66 taken 120 times.
✓ Branch 67 taken 440 times.
✓ Branch 68 taken 120 times.
✓ Branch 69 taken 440 times.
✓ Branch 70 taken 120 times.
✓ Branch 71 taken 440 times.
✗ Branch 72 not taken.
✓ Branch 73 taken 32 times.
✗ Branch 74 not taken.
✓ Branch 75 taken 32 times.
✗ Branch 76 not taken.
✓ Branch 77 taken 32 times.
✗ Branch 78 not taken.
✓ Branch 79 taken 32 times.
✗ Branch 80 not taken.
✓ Branch 81 taken 8 times.
✗ Branch 82 not taken.
✓ Branch 83 taken 8 times.
✗ Branch 84 not taken.
✓ Branch 85 taken 8 times.
✗ Branch 86 not taken.
✓ Branch 87 taken 8 times.
✓ Branch 88 taken 30 times.
✓ Branch 89 taken 106 times.
✓ Branch 90 taken 30 times.
✓ Branch 91 taken 106 times.
✓ Branch 92 taken 30 times.
✓ Branch 93 taken 106 times.
✓ Branch 94 taken 30 times.
✓ Branch 95 taken 106 times.
96349400 return std::all_of(boundaryInfo_.begin(),
212 boundaryInfo_.end(),
213
15/32
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 387133 times.
✓ Branch 3 taken 11707 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 11707 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 11707 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 11707 times.
✓ Branch 10 taken 2369544 times.
✓ Branch 11 taken 112686 times.
✓ Branch 12 taken 10316074 times.
✓ Branch 13 taken 2110889 times.
✓ Branch 14 taken 8520380 times.
✓ Branch 15 taken 2419280 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✓ Branch 28 taken 24192 times.
✓ Branch 29 taken 16128 times.
✓ Branch 30 taken 7872 times.
✓ Branch 31 taken 32528 times.
26328413 [](const BoundaryInfo& b){ return b.isDirichlet ||
214
7/32
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 387133 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 11 taken 2369544 times.
✗ Branch 12 not taken.
✓ Branch 13 taken 10316074 times.
✓ Branch 14 taken 8512508 times.
✓ Branch 15 taken 7872 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✓ Branch 29 taken 24192 times.
✓ Branch 30 taken 7872 times.
✗ Branch 31 not taken.
21625195 b.isCouplingDirichlet; }
215 );
216 }
217
218 /*!
219 * \brief Returns true if some equation is used to specify a
220 * Dirichlet condition.
221 */
222 bool hasDirichlet() const
223 {
224
92/96
✓ Branch 0 taken 1969054 times.
✓ Branch 1 taken 18883818 times.
✓ Branch 2 taken 1969054 times.
✓ Branch 3 taken 18883818 times.
✓ Branch 4 taken 1969054 times.
✓ Branch 5 taken 18883818 times.
✓ Branch 6 taken 1969054 times.
✓ Branch 7 taken 18883818 times.
✓ Branch 8 taken 868855 times.
✓ Branch 9 taken 19793206 times.
✓ Branch 10 taken 868855 times.
✓ Branch 11 taken 19793206 times.
✓ Branch 12 taken 868855 times.
✓ Branch 13 taken 19793206 times.
✓ Branch 14 taken 868855 times.
✓ Branch 15 taken 19793206 times.
✓ Branch 16 taken 653283 times.
✓ Branch 17 taken 8696988 times.
✓ Branch 18 taken 653283 times.
✓ Branch 19 taken 8696988 times.
✓ Branch 20 taken 653283 times.
✓ Branch 21 taken 8696988 times.
✓ Branch 22 taken 653283 times.
✓ Branch 23 taken 8696988 times.
✓ Branch 24 taken 559106 times.
✓ Branch 25 taken 5439449 times.
✓ Branch 26 taken 559106 times.
✓ Branch 27 taken 5439449 times.
✓ Branch 28 taken 559106 times.
✓ Branch 29 taken 5439449 times.
✓ Branch 30 taken 559106 times.
✓ Branch 31 taken 5439449 times.
✓ Branch 32 taken 306268 times.
✓ Branch 33 taken 1478184 times.
✓ Branch 34 taken 306268 times.
✓ Branch 35 taken 1478184 times.
✓ Branch 36 taken 306268 times.
✓ Branch 37 taken 1478184 times.
✓ Branch 38 taken 306268 times.
✓ Branch 39 taken 1478184 times.
✓ Branch 40 taken 207604 times.
✓ Branch 41 taken 279238 times.
✓ Branch 42 taken 207604 times.
✓ Branch 43 taken 279238 times.
✓ Branch 44 taken 207604 times.
✓ Branch 45 taken 279238 times.
✓ Branch 46 taken 207604 times.
✓ Branch 47 taken 279238 times.
✓ Branch 48 taken 276174 times.
✓ Branch 49 taken 272434 times.
✓ Branch 50 taken 276174 times.
✓ Branch 51 taken 272434 times.
✓ Branch 52 taken 276174 times.
✓ Branch 53 taken 272434 times.
✓ Branch 54 taken 276174 times.
✓ Branch 55 taken 272434 times.
✓ Branch 56 taken 5186 times.
✓ Branch 57 taken 247570 times.
✓ Branch 58 taken 5186 times.
✓ Branch 59 taken 247570 times.
✓ Branch 60 taken 5186 times.
✓ Branch 61 taken 247570 times.
✓ Branch 62 taken 5186 times.
✓ Branch 63 taken 247570 times.
✓ Branch 64 taken 8243 times.
✓ Branch 65 taken 146192 times.
✓ Branch 66 taken 8243 times.
✓ Branch 67 taken 146192 times.
✓ Branch 68 taken 8243 times.
✓ Branch 69 taken 146192 times.
✓ Branch 70 taken 8243 times.
✓ Branch 71 taken 146192 times.
✓ Branch 72 taken 15753 times.
✓ Branch 73 taken 19709 times.
✓ Branch 74 taken 15753 times.
✓ Branch 75 taken 19709 times.
✓ Branch 76 taken 15753 times.
✓ Branch 77 taken 19709 times.
✓ Branch 78 taken 15753 times.
✓ Branch 79 taken 19709 times.
✓ Branch 80 taken 1000 times.
✓ Branch 81 taken 506 times.
✓ Branch 82 taken 1000 times.
✓ Branch 83 taken 506 times.
✓ Branch 84 taken 1000 times.
✓ Branch 85 taken 506 times.
✓ Branch 86 taken 1000 times.
✓ Branch 87 taken 506 times.
✓ Branch 88 taken 26 times.
✗ Branch 89 not taken.
✓ Branch 90 taken 26 times.
✗ Branch 91 not taken.
✓ Branch 92 taken 26 times.
✗ Branch 93 not taken.
✓ Branch 94 taken 26 times.
✗ Branch 95 not taken.
240511384 return std::any_of(boundaryInfo_.begin(),
225 boundaryInfo_.end(),
226
19/32
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 3140331 times.
✓ Branch 3 taken 101880 times.
✓ Branch 4 taken 3140331 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 3140331 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 3140331 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 11874665 times.
✓ Branch 11 taken 546903 times.
✓ Branch 12 taken 26017526 times.
✓ Branch 13 taken 2569724 times.
✓ Branch 14 taken 51710042 times.
✓ Branch 15 taken 650124 times.
✓ Branch 16 taken 413037 times.
✓ Branch 17 taken 7267 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✓ Branch 26 taken 87032 times.
✓ Branch 27 taken 75056 times.
✓ Branch 28 taken 296155 times.
✓ Branch 29 taken 666028 times.
✓ Branch 30 taken 396358 times.
✓ Branch 31 taken 34933 times.
108008054 [](const BoundaryInfo& b){ return b.isDirichlet ||
227
12/32
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 3140331 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3140331 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 3140331 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 3140331 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 11874665 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 26017526 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 97088 times.
✓ Branch 15 taken 51612954 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 413037 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✓ Branch 26 taken 87032 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 296155 times.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✓ Branch 31 taken 396358 times.
103356139 b.isCouplingDirichlet; }
228 );
229 }
230
231 /*!
232 * \brief Returns true if an equation is used to specify a
233 * Neumann condition.
234 *
235 * \param eqIdx The index of the equation
236 */
237 bool isNeumann(unsigned eqIdx) const
238 {
239
22/88
✓ Branch 0 taken 5619532 times.
✓ Branch 1 taken 94459955 times.
✓ Branch 2 taken 5619532 times.
✓ Branch 3 taken 94459955 times.
✓ Branch 4 taken 39122 times.
✓ Branch 5 taken 765520 times.
✓ Branch 6 taken 39122 times.
✓ Branch 7 taken 765520 times.
✓ Branch 8 taken 13735545 times.
✓ Branch 9 taken 216854 times.
✓ Branch 10 taken 13735545 times.
✓ Branch 11 taken 216854 times.
✓ Branch 12 taken 1949656 times.
✓ Branch 13 taken 1552602 times.
✓ Branch 14 taken 1949656 times.
✓ Branch 15 taken 1552602 times.
✓ Branch 16 taken 8262506 times.
✓ Branch 17 taken 672428 times.
✓ Branch 18 taken 8262506 times.
✓ Branch 19 taken 672428 times.
✗ Branch 20 not taken.
✓ Branch 21 taken 459502 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 459502 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✗ Branch 52 not taken.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 57 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✗ Branch 71 not taken.
✗ Branch 72 not taken.
✗ Branch 73 not taken.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
255466444 return boundaryInfo_[eqIdx].isNeumann ||
240
18/88
✓ Branch 0 taken 5575484 times.
✓ Branch 1 taken 44048 times.
✓ Branch 2 taken 5575484 times.
✓ Branch 3 taken 44048 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 39122 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 39122 times.
✓ Branch 8 taken 3516771 times.
✓ Branch 9 taken 10218774 times.
✓ Branch 10 taken 3516771 times.
✓ Branch 11 taken 10218774 times.
✓ Branch 12 taken 179116 times.
✓ Branch 13 taken 1770540 times.
✓ Branch 14 taken 179116 times.
✓ Branch 15 taken 1770540 times.
✓ Branch 16 taken 8258586 times.
✓ Branch 17 taken 3920 times.
✓ Branch 18 taken 8258586 times.
✓ Branch 19 taken 3920 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✗ Branch 52 not taken.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 57 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✗ Branch 71 not taken.
✗ Branch 72 not taken.
✗ Branch 73 not taken.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
59212722 boundaryInfo_[eqIdx].isCouplingNeumann;
241 }
242
243 /*!
244 * \brief Returns true if all equations are used to specify a
245 * Neumann condition.
246 */
247 bool hasOnlyNeumann() const
248 {
249
24/32
✓ Branch 0 taken 1324910 times.
✓ Branch 1 taken 4680 times.
✓ Branch 2 taken 1324910 times.
✓ Branch 3 taken 4680 times.
✓ Branch 4 taken 1324910 times.
✓ Branch 5 taken 4680 times.
✓ Branch 6 taken 1324910 times.
✓ Branch 7 taken 4680 times.
✓ Branch 8 taken 966044 times.
✓ Branch 9 taken 2400 times.
✓ Branch 10 taken 966044 times.
✓ Branch 11 taken 2400 times.
✓ Branch 12 taken 966044 times.
✓ Branch 13 taken 2400 times.
✓ Branch 14 taken 966044 times.
✓ Branch 15 taken 2400 times.
✓ Branch 16 taken 583492 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 583492 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 583492 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 583492 times.
✗ Branch 23 not taken.
✓ Branch 24 taken 144672 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 144672 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 144672 times.
✗ Branch 29 not taken.
✓ Branch 30 taken 144672 times.
✗ Branch 31 not taken.
12104792 return std::all_of(boundaryInfo_.begin(),
250 boundaryInfo_.end(),
251
4/16
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 11 taken 1576176 times.
✗ Branch 12 not taken.
✓ Branch 13 taken 2326444 times.
✓ Branch 14 taken 7080 times.
✓ Branch 15 taken 3019118 times.
6928818 [](const BoundaryInfo& b){ return b.isNeumann ||
252
1/16
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✓ Branch 14 taken 7080 times.
✗ Branch 15 not taken.
7080 b.isCouplingNeumann; }
253 );
254 }
255
256 /*!
257 * \brief Returns true if some equation is used to specify a
258 * Neumann condition.
259 */
260 bool hasNeumann() const
261 {
262
72/72
✓ Branch 0 taken 32528743 times.
✓ Branch 1 taken 14898381 times.
✓ Branch 2 taken 32528743 times.
✓ Branch 3 taken 14898381 times.
✓ Branch 4 taken 32528743 times.
✓ Branch 5 taken 14898381 times.
✓ Branch 6 taken 32528743 times.
✓ Branch 7 taken 14898381 times.
✓ Branch 8 taken 6968992 times.
✓ Branch 9 taken 1781430 times.
✓ Branch 10 taken 6968992 times.
✓ Branch 11 taken 1781430 times.
✓ Branch 12 taken 6968992 times.
✓ Branch 13 taken 1781430 times.
✓ Branch 14 taken 6968992 times.
✓ Branch 15 taken 1781430 times.
✓ Branch 16 taken 15802793 times.
✓ Branch 17 taken 317632 times.
✓ Branch 18 taken 15802793 times.
✓ Branch 19 taken 317632 times.
✓ Branch 20 taken 15802793 times.
✓ Branch 21 taken 317632 times.
✓ Branch 22 taken 15802793 times.
✓ Branch 23 taken 317632 times.
✓ Branch 24 taken 5650524 times.
✓ Branch 25 taken 166717 times.
✓ Branch 26 taken 5650524 times.
✓ Branch 27 taken 166717 times.
✓ Branch 28 taken 5650524 times.
✓ Branch 29 taken 166717 times.
✓ Branch 30 taken 5650524 times.
✓ Branch 31 taken 166717 times.
✓ Branch 32 taken 1055754 times.
✓ Branch 33 taken 11688 times.
✓ Branch 34 taken 1055754 times.
✓ Branch 35 taken 11688 times.
✓ Branch 36 taken 1055754 times.
✓ Branch 37 taken 11688 times.
✓ Branch 38 taken 1055754 times.
✓ Branch 39 taken 11688 times.
✓ Branch 40 taken 170982 times.
✓ Branch 41 taken 366324 times.
✓ Branch 42 taken 170982 times.
✓ Branch 43 taken 366324 times.
✓ Branch 44 taken 170982 times.
✓ Branch 45 taken 366324 times.
✓ Branch 46 taken 170982 times.
✓ Branch 47 taken 366324 times.
✓ Branch 48 taken 91340 times.
✓ Branch 49 taken 44 times.
✓ Branch 50 taken 91340 times.
✓ Branch 51 taken 44 times.
✓ Branch 52 taken 91340 times.
✓ Branch 53 taken 44 times.
✓ Branch 54 taken 91340 times.
✓ Branch 55 taken 44 times.
✓ Branch 56 taken 133566 times.
✓ Branch 57 taken 304 times.
✓ Branch 58 taken 133566 times.
✓ Branch 59 taken 304 times.
✓ Branch 60 taken 133566 times.
✓ Branch 61 taken 304 times.
✓ Branch 62 taken 133566 times.
✓ Branch 63 taken 304 times.
✓ Branch 64 taken 249231 times.
✓ Branch 65 taken 17144 times.
✓ Branch 66 taken 249231 times.
✓ Branch 67 taken 17144 times.
✓ Branch 68 taken 249231 times.
✓ Branch 69 taken 17144 times.
✓ Branch 70 taken 249231 times.
✓ Branch 71 taken 17144 times.
320951788 return std::any_of(boundaryInfo_.begin(),
263 boundaryInfo_.end(),
264
28/32
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 9071667 times.
✓ Branch 3 taken 14825843 times.
✓ Branch 4 taken 8983147 times.
✓ Branch 5 taken 88520 times.
✓ Branch 6 taken 8887403 times.
✓ Branch 7 taken 95744 times.
✓ Branch 8 taken 8335433 times.
✓ Branch 9 taken 551970 times.
✓ Branch 10 taken 4632894 times.
✓ Branch 11 taken 12794646 times.
✓ Branch 12 taken 12227545 times.
✓ Branch 13 taken 15394067 times.
✓ Branch 14 taken 16564206 times.
✓ Branch 15 taken 15531929 times.
✓ Branch 16 taken 9951 times.
✓ Branch 17 taken 473374 times.
✓ Branch 18 taken 226356 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 182808 times.
✓ Branch 21 taken 43548 times.
✓ Branch 22 taken 73894 times.
✓ Branch 23 taken 108914 times.
✓ Branch 24 taken 73894 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 926620 times.
✓ Branch 27 taken 33252 times.
✓ Branch 28 taken 1602747 times.
✓ Branch 29 taken 689472 times.
✓ Branch 30 taken 1692171 times.
✓ Branch 31 taken 188672 times.
134310687 [](const BoundaryInfo& b){ return b.isNeumann ||
265
15/32
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 9071667 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 8983147 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 8887403 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 8335433 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 4632894 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 12227545 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 16564206 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 9951 times.
✓ Branch 18 taken 226356 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 182808 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 73894 times.
✗ Branch 23 not taken.
✓ Branch 24 taken 73894 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 926620 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 1602747 times.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✓ Branch 31 taken 1692171 times.
73490736 b.isCouplingNeumann; }
266 );
267 }
268
269 /*!
270 * \brief Returns true if an equation is used to specify an
271 * Dirichlet coupling condition.
272 *
273 * \param eqIdx The index of the equation
274 */
275 bool isCouplingDirichlet(unsigned eqIdx) const
276
6/24
✗ Branch 0 not taken.
✓ Branch 1 taken 961176 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 961176 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 519702 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 519702 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✓ Branch 13 taken 244 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 244 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
2962244 { return boundaryInfo_[eqIdx].isCouplingDirichlet; }
277
278 /*!
279 * \brief Returns true if some equation is used to specify an
280 * Dirichlet coupling condition.
281 */
282 bool hasCouplingDirichlet() const
283 {
284 return std::any_of(boundaryInfo_.begin(),
285 boundaryInfo_.end(),
286 [](const BoundaryInfo& b){ return b.isCouplingDirichlet; }
287 );
288 }
289
290 /*!
291 * \brief Returns true if an equation is used to specify an
292 * Neumann coupling condition.
293 *
294 * \param eqIdx The index of the equation
295 */
296 bool isCouplingNeumann(unsigned eqIdx) const
297 { return boundaryInfo_[eqIdx].isCouplingNeumann; }
298
299 /*!
300 * \brief Returns true if some equation is used to specify an
301 * Neumann coupling condition.
302 */
303 bool hasCouplingNeumann() const
304 {
305
16/16
✓ Branch 0 taken 48952 times.
✓ Branch 1 taken 192 times.
✓ Branch 2 taken 48952 times.
✓ Branch 3 taken 192 times.
✓ Branch 4 taken 48952 times.
✓ Branch 5 taken 192 times.
✓ Branch 6 taken 48952 times.
✓ Branch 7 taken 192 times.
✓ Branch 8 taken 51624 times.
✓ Branch 9 taken 72 times.
✓ Branch 10 taken 51624 times.
✓ Branch 11 taken 72 times.
✓ Branch 12 taken 51624 times.
✓ Branch 13 taken 72 times.
✓ Branch 14 taken 51624 times.
✓ Branch 15 taken 72 times.
403360 return std::any_of(boundaryInfo_.begin(),
306 boundaryInfo_.end(),
307
4/28
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 11 taken 48544 times.
✓ Branch 12 taken 864 times.
✓ Branch 13 taken 264 times.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✓ Branch 26 taken 51168 times.
✗ Branch 27 not taken.
100840 [](const BoundaryInfo& b){ return b.isCouplingNeumann; }
308 );
309 }
310
311 /*!
312 * \brief Returns true if an equation is used to specify a
313 * coupling condition.
314 *
315 * \param eqIdx The index of the equation
316 */
317 bool isCoupling(unsigned eqIdx) const
318 {
319 return boundaryInfo_[eqIdx].isCouplingDirichlet
320 || boundaryInfo_[eqIdx].isCouplingNeumann;
321 }
322
323 /*!
324 * \brief Returns true if some equation is used to specify a
325 * coupling condition.
326 */
327 bool hasCoupling() const
328 {
329 for (int i = 0; i < numEq; ++i)
330 if (isCoupling(i))
331 return true;
332 return false;
333 }
334
335 /*!
336 * \brief Returns the index of the equation which should be used
337 * for the Dirichlet condition of the pvIdx's primary
338 * variable.
339 *
340 * \param pvIdx The index of the primary variable which is be set
341 * by the Dirichlet condition.
342 */
343 unsigned dirichletToEqIndex(unsigned pvIdx) const
344 { return pv2eqIdx_[pvIdx]; }
345
346 /*!
347 * \brief Returns the index of the primary variable which should
348 * be used for the Dirichlet condition given an equation
349 * index.
350 *
351 * \param eqIdx The index of the equation which is used to set
352 * the Dirichlet condition.
353 */
354 unsigned eqToDirichletIndex(unsigned eqIdx) const
355
6/20
✗ Branch 0 not taken.
✓ Branch 1 taken 1560428 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 1560428 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 235712 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 235712 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✓ Branch 13 taken 54866 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 54866 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
3702114 { return eq2pvIdx_[eqIdx]; }
356
357 protected:
358 //! use bitfields to minimize the size
359 struct BoundaryInfo {
360 bool visited : 1;
361 bool isDirichlet : 1;
362 bool isNeumann : 1;
363 bool isOutflow : 1;
364 bool isCouplingDirichlet : 1;
365 bool isCouplingNeumann : 1;
366 };
367
368 std::array<BoundaryInfo, numEq> boundaryInfo_;
369 std::array<unsigned int, numEq> eq2pvIdx_, pv2eqIdx_;
370 };
371
372 } // end namespace Dumux
373
374 #endif
375