From 21149e6472677b2f235e467085e6a43d050f281d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 18 Apr 2011 03:18:19 +0000 Subject: [PATCH] Move distribute_local_to_global to the correct position. git-svn-id: https://svn.dealii.org/trunk@23604 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-46/step-46.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); + } } -- 2.39.5