From: Jonathan Robey Date: Fri, 16 Sep 2016 20:00:14 +0000 (-0700) Subject: Add missing distribute() calls X-Git-Tag: v8.5.0-rc1~657^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7acba110b79853c711dec31cfd8170aecd808a7c;p=dealii.git Add missing distribute() calls --- diff --git a/examples/step-31/step-31.cc b/examples/step-31/step-31.cc index 6a8935a3c6..7970152db5 100644 --- a/examples/step-31/step-31.cc +++ b/examples/step-31/step-31.cc @@ -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; diff --git a/examples/step-43/step-43.cc b/examples/step-43/step-43.cc index 8a69b6732b..2e6b81c580 100644 --- a/examples/step-43/step-43.cc +++ b/examples/step-43/step-43.cc @@ -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 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; } }