]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Take communication out of the loop. 1763/head
authorAlexander Grayver <agrayver@erdw.ethz.ch>
Fri, 23 Oct 2015 16:22:48 +0000 (18:22 +0200)
committerAlexander Grayver <agrayver@erdw.ethz.ch>
Fri, 23 Oct 2015 16:22:48 +0000 (18:22 +0200)
source/dofs/dof_tools_constraints.cc

index 8c19ba84cb2fa88fbecfb0a216e1a0e0e93ffb6c..f76dbee3fb29d84996bca3d457e16ba98b65b233 100644 (file)
@@ -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<copy_data.global_parameter_representation.size(); ++i)
+          copy_data.global_parameter_representation[i].update_ghost_values ();
+#endif
       }
 
 

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.