]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Need to also distribute system_rhs.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 Feb 2011 17:02:50 +0000 (17:02 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 Feb 2011 17:02:50 +0000 (17:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@23394 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 1434dd2d7806db71d97afc4460d47f3974f7eac0..64aef01aa9ca0dac2e77c5cfab65c758def73bf7 100644 (file)
@@ -299,9 +299,13 @@ void StokesProblem<dim>::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<dim>::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;

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.