]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add missing distribute() calls
authorJonathan Robey <class4kayaker@gmail.com>
Fri, 16 Sep 2016 20:00:14 +0000 (13:00 -0700)
committerJonathan Robey <class4kayaker@gmail.com>
Fri, 16 Sep 2016 20:00:14 +0000 (13:00 -0700)
examples/step-31/step-31.cc
examples/step-43/step-43.cc

index 6a8935a3c63276e1671ec467e3260475d02135dd..7970152db53c38757a9676bb88380cf787a57f27 100644 (file)
@@ -2081,8 +2081,13 @@ namespace Step31
     temperature_solution = tmp[0];
     old_temperature_solution = tmp[1];
 
+    temperature_constraints.distribute(temperature_solution);
+    temperature_constraints.distribute(old_temperature_solution);
+
     stokes_trans.interpolate (x_stokes, stokes_solution);
 
+    stokes_constraints.distribute(stokes_solution);
+
     rebuild_stokes_matrix         = true;
     rebuild_temperature_matrices  = true;
     rebuild_stokes_preconditioner = true;
index 8a69b6732bb9ba517bad04b4e50ded0f35e215ed..2e6b81c580ebe0a49f7ef4ce5e054bfedde70cb6 100644 (file)
@@ -1743,6 +1743,10 @@ namespace Step43
       old_saturation_solution = tmp_saturation[1];
       saturation_matching_last_computed_darcy_solution = tmp_saturation[2];
 
+      saturation_constraints.distribute(saturation_solution);
+      saturation_constraints.distribute(old_saturation_solution);
+      saturation_constraints.distribute(saturation_matching_last_computed_darcy_solution);
+
       std::vector<TrilinosWrappers::MPI::BlockVector> tmp_darcy (2);
       tmp_darcy[0].reinit (darcy_solution);
       tmp_darcy[1].reinit (darcy_solution);
@@ -1751,6 +1755,9 @@ namespace Step43
       last_computed_darcy_solution        = tmp_darcy[0];
       second_last_computed_darcy_solution = tmp_darcy[1];
 
+      darcy_constraints.distribute(last_computed_darcy_solution);
+      darcy_constraints.distribute(second_last_computed_darcy_solution);
+
       rebuild_saturation_matrix    = true;
     }
   }

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.