From 7acba110b79853c711dec31cfd8170aecd808a7c Mon Sep 17 00:00:00 2001 From: Jonathan Robey Date: Fri, 16 Sep 2016 13:00:14 -0700 Subject: [PATCH] Add missing distribute() calls --- examples/step-31/step-31.cc | 5 +++++ examples/step-43/step-43.cc | 7 +++++++ 2 files changed, 12 insertions(+) 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; } } -- 2.39.5