Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
31022ac7
Commit
31022ac7
authored
3 years ago
by
Timo Koch
Committed by
Dennis Gläser
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[bctypes] Deprecate general outflow boundary condition
parent
f1d77760
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2552
Remove general outflow bc type
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/common/boundarytypes.hh
+4
-0
4 additions, 0 deletions
dumux/common/boundarytypes.hh
dumux/discretization/box/elementboundarytypes.hh
+4
-0
4 additions, 0 deletions
dumux/discretization/box/elementboundarytypes.hh
with
8 additions
and
0 deletions
dumux/common/boundarytypes.hh
+
4
−
0
View file @
31022ac7
...
@@ -117,6 +117,7 @@ public:
...
@@ -117,6 +117,7 @@ public:
/*!
/*!
* \brief Set all boundary conditions to Neumann.
* \brief Set all boundary conditions to Neumann.
*/
*/
[[
deprecated
(
"Will be removed after release 3.4"
)]]
void
setAllOutflow
()
void
setAllOutflow
()
{
{
for
(
int
eqIdx
=
0
;
eqIdx
<
numEq
;
++
eqIdx
)
for
(
int
eqIdx
=
0
;
eqIdx
<
numEq
;
++
eqIdx
)
...
@@ -181,6 +182,7 @@ public:
...
@@ -181,6 +182,7 @@ public:
* \param eqIdx The index of the equation on which the outflow
* \param eqIdx The index of the equation on which the outflow
* condition applies.
* condition applies.
*/
*/
[[
deprecated
(
"Will be removed after release 3.4"
)]]
void
setOutflow
(
int
eqIdx
)
void
setOutflow
(
int
eqIdx
)
{
{
resetEq
(
eqIdx
);
resetEq
(
eqIdx
);
...
@@ -308,6 +310,7 @@ public:
...
@@ -308,6 +310,7 @@ public:
*
*
* \param eqIdx The index of the equation
* \param eqIdx The index of the equation
*/
*/
[[
deprecated
(
"Will be removed after release 3.4"
)]]
bool
isOutflow
(
unsigned
eqIdx
)
const
bool
isOutflow
(
unsigned
eqIdx
)
const
{
return
boundaryInfo_
[
eqIdx
].
isOutflow
;
}
{
return
boundaryInfo_
[
eqIdx
].
isOutflow
;
}
...
@@ -315,6 +318,7 @@ public:
...
@@ -315,6 +318,7 @@ public:
* \brief Returns true if some equation is used to specify an
* \brief Returns true if some equation is used to specify an
* outflow condition.
* outflow condition.
*/
*/
[[
deprecated
(
"Will be removed after release 3.4"
)]]
bool
hasOutflow
()
const
bool
hasOutflow
()
const
{
{
return
std
::
any_of
(
boundaryInfo_
.
begin
(),
return
std
::
any_of
(
boundaryInfo_
.
begin
(),
...
...
This diff is collapsed.
Click to expand it.
dumux/discretization/box/elementboundarytypes.hh
+
4
−
0
View file @
31022ac7
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include
<cassert>
#include
<cassert>
#include
<vector>
#include
<vector>
#include
<dune/common/deprecated.hh>
namespace
Dumux
{
namespace
Dumux
{
...
@@ -72,7 +73,9 @@ public:
...
@@ -72,7 +73,9 @@ public:
hasDirichlet_
=
hasDirichlet_
||
vertexBCTypes_
[
scvIdxLocal
].
hasDirichlet
();
hasDirichlet_
=
hasDirichlet_
||
vertexBCTypes_
[
scvIdxLocal
].
hasDirichlet
();
hasNeumann_
=
hasNeumann_
||
vertexBCTypes_
[
scvIdxLocal
].
hasNeumann
();
hasNeumann_
=
hasNeumann_
||
vertexBCTypes_
[
scvIdxLocal
].
hasNeumann
();
DUNE_NO_DEPRECATED_BEGIN
hasOutflow_
=
hasOutflow_
||
vertexBCTypes_
[
scvIdxLocal
].
hasOutflow
();
hasOutflow_
=
hasOutflow_
||
vertexBCTypes_
[
scvIdxLocal
].
hasOutflow
();
DUNE_NO_DEPRECATED_END
}
}
}
}
}
}
...
@@ -95,6 +98,7 @@ public:
...
@@ -95,6 +98,7 @@ public:
* \brief Returns whether the element potentially features an
* \brief Returns whether the element potentially features an
* outflow boundary segment.
* outflow boundary segment.
*/
*/
[[
deprecated
(
"Will be removed after release 3.4"
)]]
bool
hasOutflow
()
const
bool
hasOutflow
()
const
{
return
hasOutflow_
;
}
{
return
hasOutflow_
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment