From 8a503d51e1ca1c8ab1b728a1244d1084f9b0da1a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 7 Jul 2023 13:31:32 -0400 Subject: [PATCH] Fix tests --- tests/multigrid/mg_data_out_01.cc | 2 +- tests/multigrid/mg_data_out_02.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/multigrid/mg_data_out_01.cc b/tests/multigrid/mg_data_out_01.cc index 5ff50d6e6b..b206e81296 100644 --- a/tests/multigrid/mg_data_out_01.cc +++ b/tests/multigrid/mg_data_out_01.cc @@ -31,7 +31,7 @@ template void print(DataOut &data_out, const Triangulation &tria) { - auto &p = data_out.get_cell_selection(); + auto p = data_out.get_cell_selection(); for (auto cell = p.first(tria); cell.state() == IteratorState::valid; cell = p.second(tria, cell)) diff --git a/tests/multigrid/mg_data_out_02.cc b/tests/multigrid/mg_data_out_02.cc index f4b534c916..258dadb6a4 100644 --- a/tests/multigrid/mg_data_out_02.cc +++ b/tests/multigrid/mg_data_out_02.cc @@ -32,7 +32,7 @@ template void print(DataOut &data_out, const Triangulation &tria) { - auto &p = data_out.get_cell_selection(); + auto p = data_out.get_cell_selection(); for (auto cell = p.first(tria); cell.state() == IteratorState::valid; cell = p.second(tria, cell)) -- 2.39.5