From 93ceb194dfdf9ea645d412c73a7711a8b214dc2d Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 18 Feb 2011 17:02:50 +0000 Subject: [PATCH] Need to also distribute system_rhs. git-svn-id: https://svn.dealii.org/trunk@23394 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-46/step-46.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deal.II/examples/step-46/step-46.cc b/deal.II/examples/step-46/step-46.cc index 1434dd2d78..64aef01aa9 100644 --- a/deal.II/examples/step-46/step-46.cc +++ b/deal.II/examples/step-46/step-46.cc @@ -299,9 +299,13 @@ void StokesProblem::assemble_system () local_matrix(i,j) = local_matrix(j,i); cell->get_dof_indices (local_dof_indices); - constraints.distribute_local_to_global (local_matrix, + + // local_rhs==0, but need to do + // this here because of + // boundary values + constraints.distribute_local_to_global (local_matrix, local_rhs, local_dof_indices, - system_matrix); + system_matrix, system_rhs); } } @@ -390,7 +394,7 @@ void StokesProblem::run () triangulation.refine_global (3-dim); - for (unsigned int refinement_cycle = 0; refinement_cycle<1; + for (unsigned int refinement_cycle = 0; refinement_cycle<6; ++refinement_cycle) { std::cout << "Refinement cycle " << refinement_cycle << std::endl; -- 2.39.5