Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
ff1afa09
Commit
ff1afa09
authored
Mar 21, 2020
by
Kilian Weishaupt
Browse files
[boundarytypes] is/hasNeumann also accounts for couplingNeumann
parent
bae38d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/common/boundarytypes.hh
View file @
ff1afa09
...
...
@@ -235,7 +235,8 @@ public:
*/
bool
isDirichlet
(
unsigned
eqIdx
)
const
{
return
boundaryInfo_
[
eqIdx
].
isDirichlet
||
boundaryInfo_
[
eqIdx
].
isCouplingDirichlet
;
}
boundaryInfo_
[
eqIdx
].
isCouplingDirichlet
;
}
/*!
* \brief Returns true if all equations are used to specify a
...
...
@@ -270,7 +271,10 @@ public:
* \param eqIdx The index of the equation
*/
bool
isNeumann
(
unsigned
eqIdx
)
const
{
return
boundaryInfo_
[
eqIdx
].
isNeumann
;
}
{
return
boundaryInfo_
[
eqIdx
].
isNeumann
||
boundaryInfo_
[
eqIdx
].
isCouplingNeumann
;
}
/*!
* \brief Returns true if all equations are used to specify a
...
...
@@ -280,7 +284,8 @@ public:
{
return
std
::
all_of
(
boundaryInfo_
.
begin
(),
boundaryInfo_
.
end
(),
[](
const
BoundaryInfo
&
b
){
return
b
.
isNeumann
;
}
[](
const
BoundaryInfo
&
b
){
return
b
.
isNeumann
||
b
.
isCouplingNeumann
;
}
);
}
...
...
@@ -292,7 +297,8 @@ public:
{
return
std
::
any_of
(
boundaryInfo_
.
begin
(),
boundaryInfo_
.
end
(),
[](
const
BoundaryInfo
&
b
){
return
b
.
isNeumann
;
}
[](
const
BoundaryInfo
&
b
){
return
b
.
isNeumann
||
b
.
isCouplingNeumann
;
}
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment