From: Martin Kronbichler Date: Fri, 8 Nov 2024 11:57:06 +0000 (+0100) Subject: Fix initialization of partitioners in two performance tests X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=069199fe734285b0ce123b06001be73b52299038;p=dealii.git Fix initialization of partitioners in two performance tests --- 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); }