From: Daniel Arndt Date: Fri, 7 Jul 2023 17:31:32 +0000 (-0400) Subject: Fix tests X-Git-Tag: relicensing~724^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15671%2Fhead;p=dealii.git Fix tests --- 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))