From: Martin Kronbichler Date: Fri, 27 Sep 2019 14:11:39 +0000 (+0200) Subject: Use proper partitioner in step-64 X-Git-Tag: v9.2.0-rc1~1001^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9604734564d85ebc174841bd7c2fc143eb47ddcd;p=dealii.git Use proper partitioner in step-64 --- diff --git a/examples/step-64/step-64.cu b/examples/step-64/step-64.cu index abc67f1696..1ec73ef854 100644 --- a/examples/step-64/step-64.cu +++ b/examples/step-64/step-64.cu @@ -236,6 +236,9 @@ namespace Step64 const LinearAlgebra::distributed::Vector &src) const; + void initialize_dof_vector( + LinearAlgebra::distributed::Vector &vec) const; + private: CUDAWrappers::MatrixFree mf_data; LinearAlgebra::CUDAWrappers::Vector coef; @@ -304,6 +307,15 @@ namespace Step64 } + + template + void HelmholtzOperator::initialize_dof_vector( + LinearAlgebra::distributed::Vector &vec) const + { + mf_data.initialize_dof_vector(vec); + } + + // @sect3{Class HelmholtzProblem} // This is the main class of this program. It defines the usual @@ -401,8 +413,8 @@ namespace Step64 ghost_solution_host.reinit(locally_owned_dofs, locally_relevant_dofs, mpi_communicator); - solution_dev.reinit(locally_owned_dofs, mpi_communicator); - system_rhs_dev.reinit(locally_owned_dofs, mpi_communicator); + system_matrix_dev->initialize_dof_vector(solution_dev); + system_rhs_dev.reinit(solution_dev); }