Skip to content

Commit

Permalink
Revert "Dirichlet constraints can be distributed here"
Browse files Browse the repository at this point in the history
This reverts commit b0f8edb.
  • Loading branch information
landinjm committed Oct 14, 2024
1 parent a5a4af5 commit c4aba11
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/matrixfree/computeLHS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,15 @@ MatrixFreePDE<dim, degree>::vmult(vectorType &dst, const vectorType &src) const
true);
}

// Account for Dirichlet BC's
constraintsDirichletSet[currentFieldIndex]->distribute(dst);
// Account for Dirichlet BC's (essentially copy dirichlet DOF values present in src to
// dst, although it is unclear why the constraints can't just be distributed here)
for (auto &it : *valuesDirichletSet[currentFieldIndex])
{
if (dst.in_local_range(it.first))
{
dst(it.first) = src(it.first);
}
}

// end log
computing_timer.leave_subsection("matrixFreePDE: computeLHS");
Expand Down

0 comments on commit c4aba11

Please sign in to comment.