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
bae38d2a
Commit
bae38d2a
authored
Mar 20, 2020
by
Kilian Weishaupt
Browse files
[boundarytypes] is/hasDirichlet also accounts for couplingDirichlet
parent
29bcf92a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/common/boundarytypes.hh
View file @
bae38d2a
...
@@ -234,7 +234,8 @@ public:
...
@@ -234,7 +234,8 @@ public:
* \param eqIdx The index of the equation
* \param eqIdx The index of the equation
*/
*/
bool
isDirichlet
(
unsigned
eqIdx
)
const
bool
isDirichlet
(
unsigned
eqIdx
)
const
{
return
boundaryInfo_
[
eqIdx
].
isDirichlet
;
}
{
return
boundaryInfo_
[
eqIdx
].
isDirichlet
||
boundaryInfo_
[
eqIdx
].
isCouplingDirichlet
;
}
/*!
/*!
* \brief Returns true if all equations are used to specify a
* \brief Returns true if all equations are used to specify a
...
@@ -257,7 +258,8 @@ public:
...
@@ -257,7 +258,8 @@ public:
{
{
return
std
::
any_of
(
boundaryInfo_
.
begin
(),
return
std
::
any_of
(
boundaryInfo_
.
begin
(),
boundaryInfo_
.
end
(),
boundaryInfo_
.
end
(),
[](
const
BoundaryInfo
&
b
){
return
b
.
isDirichlet
;
}
[](
const
BoundaryInfo
&
b
){
return
b
.
isDirichlet
||
b
.
isCouplingDirichlet
;
}
);
);
}
}
...
...
Write
Preview
Markdown
is supported
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