From 2e416c70ba704df48c890c42327b3e380ca78c43 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Tue, 28 May 2013 06:26:59 +0000 Subject: [PATCH] Should not call ConstraintMatrix::distribute on vector with ghost values git-svn-id: https://svn.dealii.org/trunk@29654 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-48/step-48.cc | 2 +- tests/mpi/step-48.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/examples/step-48/step-48.cc b/deal.II/examples/step-48/step-48.cc index 79250490ed..2926733ba0 100644 --- a/deal.II/examples/step-48/step-48.cc +++ b/deal.II/examples/step-48/step-48.cc @@ -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 norm_per_cell (triangulation.n_active_cells()); + locally_relevant_solution.update_ghost_values(); VectorTools::integrate_difference (dof_handler, locally_relevant_solution, ZeroFunction(), diff --git a/tests/mpi/step-48.cc b/tests/mpi/step-48.cc index d0418832f6..ebcfa168e4 100644 --- a/tests/mpi/step-48.cc +++ b/tests/mpi/step-48.cc @@ -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 norm_per_cell (triangulation.n_active_cells()); + locally_relevant_solution.update_ghost_values(); VectorTools::integrate_difference (dof_handler, locally_relevant_solution, ZeroFunction(), -- 2.39.5