From 8954caa4ad7cacaa6e568ab924b7da4897121e95 Mon Sep 17 00:00:00 2001 From: kanschat Date: Sun, 26 May 2013 22:08:33 +0000 Subject: [PATCH] add distribution for Kelly git-svn-id: https://svn.dealii.org/trunk@29626 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/multigrid_adaptive.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/mpi/multigrid_adaptive.cc b/tests/mpi/multigrid_adaptive.cc index 6a093c01fb..43b958908f 100644 --- a/tests/mpi/multigrid_adaptive.cc +++ b/tests/mpi/multigrid_adaptive.cc @@ -430,10 +430,17 @@ namespace Step50 { Vector estimated_error_per_cell (triangulation.n_active_cells()); + TrilinosWrappers::MPI::Vector temp_solution; + IndexSet idx; + DoFTools::extract_locally_relevant_dofs (mg_dof_handler, + idx); + temp_solution.reinit(idx, MPI_COMM_WORLD); + temp_solution = solution; + KellyErrorEstimator::estimate (static_cast&>(mg_dof_handler), QGauss(3), typename FunctionMap::type(), - solution, + temp_solution, estimated_error_per_cell); GridRefinement::refine_and_coarsen_fixed_number (triangulation, estimated_error_per_cell, -- 2.39.5