From: Wolfgang Bangerth Date: Fri, 27 Jan 2023 20:15:37 +0000 (-0700) Subject: Replace deprecated function in tests. X-Git-Tag: v9.5.0-rc1~592^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14741%2Fhead;p=dealii.git Replace deprecated function in tests. --- diff --git a/tests/base/index_set_19.cc b/tests/base/index_set_19.cc index e9a57d3640..32ba183cce 100644 --- a/tests/base/index_set_19.cc +++ b/tests/base/index_set_19.cc @@ -14,7 +14,7 @@ // --------------------------------------------------------------------- -// test IndexSet::fill_index_vector +// test IndexSet::get_index_vector() #include @@ -34,8 +34,7 @@ test() for (unsigned int i = 0; i < 9 * is1.size() / 10; ++i) is1.add_index(Testing::rand() % is1.size()); - std::vector indices; - is1.fill_index_vector(indices); + const std::vector indices = is1.get_index_vector(); deallog << "Original index set: " << std::endl; is1.print(deallog); diff --git a/tests/matrix_free/parallel_multigrid_adaptive_01.cc b/tests/matrix_free/parallel_multigrid_adaptive_01.cc index 1dfeaf273f..85c2aa7067 100644 --- a/tests/matrix_free/parallel_multigrid_adaptive_01.cc +++ b/tests/matrix_free/parallel_multigrid_adaptive_01.cc @@ -95,9 +95,9 @@ public: constraints.reinit(relevant_dofs); constraints.add_lines(mg_constrained_dofs.get_boundary_indices(level)); - std::vector interface_indices; - mg_constrained_dofs.get_refinement_edge_indices(level) - .fill_index_vector(interface_indices); + const std::vector interface_indices = + mg_constrained_dofs.get_refinement_edge_indices(level) + .get_index_vector(); edge_constrained_indices.clear(); edge_constrained_indices.reserve(interface_indices.size()); edge_constrained_values.resize(interface_indices.size()); diff --git a/tests/matrix_free/parallel_multigrid_adaptive_03.cc b/tests/matrix_free/parallel_multigrid_adaptive_03.cc index c5dc325f5d..370454a6b3 100644 --- a/tests/matrix_free/parallel_multigrid_adaptive_03.cc +++ b/tests/matrix_free/parallel_multigrid_adaptive_03.cc @@ -102,9 +102,9 @@ public: constraints.reinit(relevant_dofs); constraints.add_lines(mg_constrained_dofs.get_boundary_indices(level)); - std::vector interface_indices; - mg_constrained_dofs.get_refinement_edge_indices(level) - .fill_index_vector(interface_indices); + const std::vector interface_indices = + mg_constrained_dofs.get_refinement_edge_indices(level) + .get_index_vector(); edge_constrained_indices.clear(); edge_constrained_indices.reserve(interface_indices.size()); edge_constrained_values.resize(interface_indices.size()); diff --git a/tests/matrix_free/parallel_multigrid_adaptive_05.cc b/tests/matrix_free/parallel_multigrid_adaptive_05.cc index 6cb67244a7..c4c4904310 100644 --- a/tests/matrix_free/parallel_multigrid_adaptive_05.cc +++ b/tests/matrix_free/parallel_multigrid_adaptive_05.cc @@ -99,9 +99,9 @@ public: constraints.reinit(relevant_dofs); constraints.add_lines(mg_constrained_dofs.get_boundary_indices(level)); - std::vector interface_indices; - mg_constrained_dofs.get_refinement_edge_indices(level) - .fill_index_vector(interface_indices); + const std::vector interface_indices = + mg_constrained_dofs.get_refinement_edge_indices(level) + .get_index_vector(); edge_constrained_indices.clear(); edge_constrained_indices.reserve(interface_indices.size()); edge_constrained_values.resize(interface_indices.size()); diff --git a/tests/matrix_free/parallel_multigrid_adaptive_08.cc b/tests/matrix_free/parallel_multigrid_adaptive_08.cc index 0cd84a23ff..cddd513be2 100644 --- a/tests/matrix_free/parallel_multigrid_adaptive_08.cc +++ b/tests/matrix_free/parallel_multigrid_adaptive_08.cc @@ -80,9 +80,8 @@ public: level, std::vector({0})); - std::vector interface_indices; - mg_constrained_dofs.get_refinement_edge_indices(level).fill_index_vector( - interface_indices); + const std::vector interface_indices = + mg_constrained_dofs.get_refinement_edge_indices(level).get_index_vector(); vmult_edge_constrained_indices.clear(); vmult_edge_constrained_indices.reserve(interface_indices.size()); vmult_edge_constrained_values.resize(interface_indices.size());