From: Wolfgang Bangerth Date: Mon, 18 Apr 2011 03:18:19 +0000 (+0000) Subject: Move distribute_local_to_global to the correct position. X-Git-Tag: v8.0.0~4153 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21149e6472677b2f235e467085e6a43d050f281d;p=dealii.git Move distribute_local_to_global to the correct position. git-svn-id: https://svn.dealii.org/trunk@23604 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-46/step-46.cc b/deal.II/examples/step-46/step-46.cc index a5b0212474..425b689dbd 100644 --- a/deal.II/examples/step-46/step-46.cc +++ b/deal.II/examples/step-46/step-46.cc @@ -435,13 +435,6 @@ void FluidStructureProblem::assemble_system () local_dof_indices.resize (dofs_per_cell); cell->get_dof_indices (local_dof_indices); - // 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_rhs); - // see about face terms if (cell->active_fe_index() == 0) // we are on a fluid cell @@ -498,6 +491,13 @@ void FluidStructureProblem::assemble_system () continue; } } + // 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_rhs); + } }