From: kanschat Date: Sun, 26 May 2013 22:08:33 +0000 (+0000) Subject: add distribution for Kelly X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8954caa4ad7cacaa6e568ab924b7da4897121e95;p=dealii-svn.git add distribution for Kelly git-svn-id: https://svn.dealii.org/trunk@29626 0785d39b-7218-0410-832d-ea1e28bc413d --- 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,