From 1ef928915d35915289863b4de76693e416f453b6 Mon Sep 17 00:00:00 2001 From: Alexander Grayver Date: Fri, 23 Oct 2015 18:22:48 +0200 Subject: [PATCH] Take communication out of the loop. --- source/dofs/dof_tools_constraints.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/dofs/dof_tools_constraints.cc b/source/dofs/dof_tools_constraints.cc index 8c19ba84cb..f76dbee3fb 100644 --- a/source/dofs/dof_tools_constraints.cc +++ b/source/dofs/dof_tools_constraints.cc @@ -2601,10 +2601,6 @@ namespace DoFTools coarse_to_fine_grid_map[cell]-> set_dof_values_by_interpolation (parameter_dofs[local_parameter_dof], copy_data.global_parameter_representation[local_parameter_dof]); - -#ifdef DEAL_II_WITH_MPI - copy_data.global_parameter_representation[local_parameter_dof].update_ghost_values (); -#endif } } @@ -2759,6 +2755,11 @@ namespace DoFTools std_cxx11::ref(weights)), scratch, copy_data); + +#ifdef DEAL_II_WITH_MPI + for (size_t i=0; i