Commit 31bc0cd2 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

correct boundary condition treecontainer access

parent a7a4301c
...@@ -308,10 +308,10 @@ addDirichletBC(Predicate const& predicate, RowTreePath row, ColTreePath col, Val ...@@ -308,10 +308,10 @@ addDirichletBC(Predicate const& predicate, RowTreePath row, ColTreePath col, Val
"Function passed to addDirichletBC for `predicate` does not model the Functor<bool(WorldVector)> concept"); "Function passed to addDirichletBC for `predicate` does not model the Functor<bool(WorldVector)> concept");
auto localView = globalBasis_->localView(); auto localView = globalBasis_->localView();
auto i = child(localView.tree(), makeTreePath(row)); auto i = makeTreePath(row);
auto j = child(localView.tree(), makeTreePath(col)); auto j = makeTreePath(col);
auto rowBasis = Dune::Functions::subspaceBasis(*globalBasis_, makeTreePath(row)); auto rowBasis = Dune::Functions::subspaceBasis(*globalBasis_, i);
auto colBasis = Dune::Functions::subspaceBasis(*globalBasis_, makeTreePath(col)); auto colBasis = Dune::Functions::subspaceBasis(*globalBasis_, j);
auto valueGridFct = makeGridFunction(values, this->gridView()); auto valueGridFct = makeGridFunction(values, this->gridView());
...@@ -328,10 +328,10 @@ void ProblemStat<Traits>:: ...@@ -328,10 +328,10 @@ void ProblemStat<Traits>::
addDirichletBC(BoundaryType id, RowTreePath row, ColTreePath col, Values const& values) addDirichletBC(BoundaryType id, RowTreePath row, ColTreePath col, Values const& values)
{ {
auto localView = globalBasis_->localView(); auto localView = globalBasis_->localView();
auto i = child(localView.tree(), makeTreePath(row)); auto i = makeTreePath(row);
auto j = child(localView.tree(), makeTreePath(col)); auto j = makeTreePath(col);
auto rowBasis = Dune::Functions::subspaceBasis(*globalBasis_, makeTreePath(row)); auto rowBasis = Dune::Functions::subspaceBasis(*globalBasis_, i);
auto colBasis = Dune::Functions::subspaceBasis(*globalBasis_, makeTreePath(col)); auto colBasis = Dune::Functions::subspaceBasis(*globalBasis_, j);
auto valueGridFct = makeGridFunction(values, this->gridView()); auto valueGridFct = makeGridFunction(values, this->gridView());
...@@ -349,7 +349,7 @@ addPeriodicBC(BoundaryType id, WorldMatrix const& matrix, WorldVector const& vec ...@@ -349,7 +349,7 @@ addPeriodicBC(BoundaryType id, WorldMatrix const& matrix, WorldVector const& vec
auto basis = Dune::Functions::subspaceBasis(*globalBasis_, treepath()); auto basis = Dune::Functions::subspaceBasis(*globalBasis_, treepath());
auto bc = makePeriodicBC<SystemMatrix, SolutionVector, SystemVector>( auto bc = makePeriodicBC<SystemMatrix, SolutionVector, SystemVector>(
std::move(basis), {*boundaryManager_, id}, {matrix, vector}); std::move(basis), {*boundaryManager_, id}, {matrix, vector});
boundaryConditions_[localView.tree()][localView.tree()].push_back(makeUniquePtr(std::move(bc))); boundaryConditions_[treepath()][treepath()].push_back(makeUniquePtr(std::move(bc)));
} }
......
Supports Markdown
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