Skip to content
Snippets Groups Projects
Commit 31022ac7 authored by Timo Koch's avatar Timo Koch Committed by Dennis Gläser
Browse files

[bctypes] Deprecate general outflow boundary condition

parent f1d77760
No related branches found
No related tags found
1 merge request!2552Remove general outflow bc type
...@@ -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(),
......
...@@ -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_; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment