]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Should not call ConstraintMatrix::distribute on vector with ghost values
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 28 May 2013 06:26:59 +0000 (06:26 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 28 May 2013 06:26:59 +0000 (06:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@29654 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-48/step-48.cc
tests/mpi/step-48.cc

index 79250490eda176d66461b53ecf6582a748b92a2f..2926733ba0b728a212deb0c5be63bf3f0d42e646 100644 (file)
@@ -441,10 +441,10 @@ namespace Step48
                                       locally_relevant_dofs,
                                       MPI_COMM_WORLD);
     locally_relevant_solution.copy_from (solution);
-    locally_relevant_solution.update_ghost_values ();
     constraints.distribute (locally_relevant_solution);
 
     Vector<float> norm_per_cell (triangulation.n_active_cells());
+    locally_relevant_solution.update_ghost_values();
     VectorTools::integrate_difference (dof_handler,
                                        locally_relevant_solution,
                                        ZeroFunction<dim>(),
index d0418832f6d002860de5a9505b02f512b0842048..ebcfa168e48333dbe0a2b57df5702c605b817f72 100644 (file)
@@ -308,10 +308,10 @@ namespace Step48
                                       locally_relevant_dofs,
                                       MPI_COMM_WORLD);
     locally_relevant_solution.copy_from (solution);
-    locally_relevant_solution.update_ghost_values ();
     constraints.distribute (locally_relevant_solution);
 
     Vector<float> norm_per_cell (triangulation.n_active_cells());
+    locally_relevant_solution.update_ghost_values();
     VectorTools::integrate_difference (dof_handler,
                                        locally_relevant_solution,
                                        ZeroFunction<dim>(),

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.