From a288848ba561399a1a4ed5cdb6fba0a91a1b5fe7 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Wed, 1 Nov 2023 11:22:32 -0400 Subject: [PATCH] CarpetX: Replace brace initialize by assignment --- CarpetX/src/valid.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CarpetX/src/valid.cxx b/CarpetX/src/valid.cxx index 7f81ff997..b4bbbd49b 100644 --- a/CarpetX/src/valid.cxx +++ b/CarpetX/src/valid.cxx @@ -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, @@ -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,