Skip to content

Commit

Permalink
Merge pull request #16742 from peterrum/relaxation_omega
Browse files Browse the repository at this point in the history
PreconditionRelaxation: automatically determine omega
  • Loading branch information
kronbichler committed Mar 13, 2024
2 parents 43a7737 + f4f94e2 commit f20f8d3
Show file tree
Hide file tree
Showing 5 changed files with 568 additions and 368 deletions.
6 changes: 6 additions & 0 deletions doc/news/changes/minor/20240209Munch
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
New: If the relaxation parameter is set to 0,
PreconditionRelaxation now determines it based on
estimated eigenvalues, similarly as PreconditionChebyshev
does.
<br>
(Peter Munch, Laura Prieto Saavedra, 2024/03/09)
2 changes: 1 addition & 1 deletion include/deal.II/lac/affine_constraints.h
Original file line number Diff line number Diff line change
Expand Up @@ -2756,7 +2756,7 @@ AffineConstraints<number>::copy_from(
lines.clear();
lines.reserve(other.lines.size());

for (const auto l : other.lines)
for (const auto &l : other.lines)
lines.emplace_back(l.index,
typename ConstraintLine::Entries(l.entries.begin(),
l.entries.end()),
Expand Down

0 comments on commit f20f8d3

Please sign in to comment.