]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move distribute_local_to_global to the correct position.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Apr 2011 03:18:19 +0000 (03:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Apr 2011 03:18:19 +0000 (03:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@23604 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-46/step-46.cc

index a5b02124748e967299e8006a899aec7c22141a10..425b689dbd1218e78465b9cde2ae51f6afff1e2e 100644 (file)
@@ -435,13 +435,6 @@ void FluidStructureProblem<dim>::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<dim>::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);
+
     }
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.