From 069199fe734285b0ce123b06001be73b52299038 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 8 Nov 2024 12:57:06 +0100 Subject: [PATCH] Fix initialization of partitioners in two performance tests --- tests/performance/timing_step_37.cc | 8 +++----- tests/performance/timing_step_37_gc.cc | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tests/performance/timing_step_37.cc b/tests/performance/timing_step_37.cc index 40fd9ec226..445fdd96a6 100644 --- a/tests/performance/timing_step_37.cc +++ b/tests/performance/timing_step_37.cc @@ -501,11 +501,9 @@ LaplaceProblem::setup_transfer() std::vector> partitioners( dof_handler.get_triangulation().n_global_levels()); for (unsigned int level = 0; level < partitioners.size(); ++level) - { - LinearAlgebra::distributed::Vector vec; - mg_matrices[level].initialize_dof_vector(vec); - partitioners[level] = vec.get_partitioner(); - } + partitioners[level] = + mg_matrices[level].get_matrix_free()->get_dof_info().vector_partitioner; + mg_transfer.build(dof_handler, partitioners); } diff --git a/tests/performance/timing_step_37_gc.cc b/tests/performance/timing_step_37_gc.cc index 0e1ae33351..b160ee96ef 100644 --- a/tests/performance/timing_step_37_gc.cc +++ b/tests/performance/timing_step_37_gc.cc @@ -501,11 +501,9 @@ LaplaceProblem::setup_transfer() std::vector> partitioners( dof_handler.get_triangulation().n_global_levels()); for (unsigned int level = 0; level < partitioners.size(); ++level) - { - LinearAlgebra::distributed::Vector vec; - mg_matrices[level].initialize_dof_vector(vec); - partitioners[level] = vec.get_partitioner(); - } + partitioners[level] = + mg_matrices[level].get_matrix_free()->get_dof_info().vector_partitioner; + mg_transfer.build(dof_handler, partitioners); } -- 2.39.5