]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add distribution for Kelly
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 26 May 2013 22:08:33 +0000 (22:08 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 26 May 2013 22:08:33 +0000 (22:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@29626 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/multigrid_adaptive.cc

index 6a093c01fb2a64dff413033df7ee7a734d759ecb..43b958908f90b24485b3518f790a3057753227c9 100644 (file)
@@ -430,10 +430,17 @@ namespace Step50
   {
     Vector<float> 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<dim>::estimate (static_cast<DoFHandler<dim>&>(mg_dof_handler),
                                         QGauss<dim-1>(3),
                                         typename FunctionMap<dim>::type(),
-                                        solution,
+                                        temp_solution,
                                         estimated_error_per_cell);
     GridRefinement::refine_and_coarsen_fixed_number (triangulation,
                                                      estimated_error_per_cell,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.