Skip to content

Commit

Permalink
CarpetX: Replace brace initialize by assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Nov 1, 2023
1 parent afb1a5d commit a288848
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CarpetX/src/valid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,9 @@ checksums_t calculate_checksums(

checksum_t checksum(to_check);
checksum.add(tiletag);
const auto add_point{
[&](const Loop::PointDesc &p) { checksum.add(gf(p.I)); }};
const auto add_point = [&](const Loop::PointDesc &p) {
checksum.add(gf(p.I));
};

if (to_check.valid_int)
grid.loop_idx(where_t::interior, groupdata.indextype,
Expand Down Expand Up @@ -638,8 +639,9 @@ void check_checksums(const checksums_t &checksums,

checksum_t checksum(did_check);
checksum.add(tiletag);
const auto add_point{
[&](const Loop::PointDesc &p) { checksum.add(gf(p.I)); }};
const auto add_point = [&](const Loop::PointDesc &p) {
checksum.add(gf(p.I));
};

if (did_check.valid_int)
grid.loop_idx(where_t::interior, groupdata.indextype,
Expand Down

0 comments on commit a288848

Please sign in to comment.