Skip to content

Commit

Permalink
Merge pull request #15800 from peterrum/ac_warning
Browse files Browse the repository at this point in the history
AffineConstraints: fix warnings
  • Loading branch information
peterrum committed Jul 26, 2023
2 parents af0cec3 + a13848c commit 7f8a274
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/deal.II/lac/affine_constraints.h
Original file line number Diff line number Diff line change
Expand Up @@ -2524,8 +2524,7 @@ AffineConstraints<number>::merge(

const number weight = entry.second;

for (const std::pair<size_type, number> &other_entry :
*other_entries)
for (const auto &other_entry : *other_entries)
tmp.emplace_back(other_entry.first,
other_entry.second * weight);

Expand Down Expand Up @@ -2600,7 +2599,7 @@ AffineConstraints<number>::merge(
line.index,
typename ConstraintLine::Entries(line.entries.begin(),
line.entries.end()),
line.inhomogeneity};
static_cast<number>(line.inhomogeneity)};
break;

default:
Expand Down

0 comments on commit 7f8a274

Please sign in to comment.