From: Timo Heister Date: Fri, 23 Jan 2015 14:34:01 +0000 (-0500) Subject: fix tests/mpi/step-39 X-Git-Tag: v8.3.0-rc1~519^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F467%2Fhead;p=dealii.git fix tests/mpi/step-39 And yes, making a copy of the matrix was indeed a mistake here. --- diff --git a/tests/mpi/step-39.cc b/tests/mpi/step-39.cc index f9ee1d0ee1..9180b959cf 100644 --- a/tests/mpi/step-39.cc +++ b/tests/mpi/step-39.cc @@ -563,7 +563,7 @@ namespace Step39 SolverControl coarse_solver_control (1000, 1e-10, false, false); SolverCG coarse_solver(coarse_solver_control); PreconditionIdentity identity; - TrilinosWrappers::SparseMatrix coarse_matrix = mg_matrix[0]; + TrilinosWrappers::SparseMatrix & coarse_matrix = mg_matrix[0]; MGCoarseGridLACIteration,TrilinosWrappers::MPI::Vector> coarse_grid_solver(coarse_solver, coarse_matrix, identity);