Commit bae38d2a authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[boundarytypes] is/hasDirichlet also accounts for couplingDirichlet

parent 29bcf92a
...@@ -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; }
); );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment