Skip to content
Snippets Groups Projects
Commit f7cc7c36 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

removed BoundaryCondition from MR

parent cfdbde8c
No related branches found
No related tags found
1 merge request!107Restructuring of Matrix and Vector and linear-algebra backends
This commit is part of merge request !107. Comments created here will be created in the context of that merge request.
......@@ -11,16 +11,11 @@ namespace AMDiS
{
public:
BoundaryCondition() = default;
BoundaryCondition(std::shared_ptr<BoundaryManagerBase const> const& boundaryManager, BoundaryType id)
: boundaryManager_(boundaryManager)
, id_(id)
{}
BoundaryCondition(BoundaryManagerBase const& boundaryManager, BoundaryType id)
: BoundaryCondition(Dune::stackobject_to_shared_ptr(boundaryManager), id)
{}
/// Return true if intersection is on boundary with id
template <class Intersection>
bool onBoundary(Intersection const& is) const
......@@ -28,6 +23,12 @@ namespace AMDiS
return is.boundary() && (!boundaryManager_ || boundaryManager_->boundaryId(is) == id_);
}
template <class RowBasis, class ColBasis>
void init(RowBasis const& rowBasis, ColBasis const& colBasis) { /* do nothing */ }
template <class Matrix, class X, class B, class RN, class RTP, class CN, class CTP>
void fillBoundaryCondition(Matrix& A, X& x, B& b, RN const& rowNode, RTP rowTreePath, CN const& colNode, CTP colTreePath) { /* do nothing */ }
protected:
std::shared_ptr<BoundaryManagerBase const> boundaryManager_{nullptr};
BoundaryType id_{0};
......
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