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 24, 2024
1 parent fbcdcd0 commit 01ebc57
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/matrixfree/computeLHS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,18 @@ 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 (std::map<types::global_dof_index, double>::const_iterator it =
valuesDirichletSet[currentFieldIndex]->begin();
it != valuesDirichletSet[currentFieldIndex]->end();
++it)
{
if (dst.in_local_range(it->first))
{
dst(it->first) = src(it->first); //*jacobianDiagonal(it->first);
}
}

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

0 comments on commit 01ebc57

Please sign in to comment.