]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clear ghost values in a vector 17254/head
authorMartin Kronbichler <martin.kronbichler@rub.de>
Thu, 11 Jul 2024 11:42:08 +0000 (13:42 +0200)
committerMartin Kronbichler <martin.kronbichler@rub.de>
Thu, 11 Jul 2024 11:42:08 +0000 (13:42 +0200)
examples/step-87/step-87.cc

index aeee8d067cb922790890b5a84ff521b29b46cfae..5d51f55fc93baa51c6e3df76018d5e7521588d1d 100644 (file)
@@ -831,6 +831,7 @@ namespace Step87
               VectorTools::point_values<dim>(rpe,
                                              dof_handler_background,
                                              velocity);
+            velocity.zero_out_ghost_values();
 
             for (unsigned int i = 0, c = 0;
                  i < immersed_support_points.locally_owned_size() / 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.