]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Can distribute matrix and vector at once in Stokes assembly.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Mar 2009 15:38:26 +0000 (15:38 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Mar 2009 15:38:26 +0000 (15:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@18465 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 68c6d1b5cb03ecb59566ed2d923e447ffe10151e..0d8f8abacd0eb995cc2048705d92e678deeb54f1 100644 (file)
@@ -1792,12 +1792,14 @@ void BoussinesqFlowProblem<dim>::assemble_stokes_system ()
 
       if (rebuild_stokes_matrix == true)
        stokes_constraints.distribute_local_to_global (local_matrix,
+                                                      local_rhs,
                                                       local_dof_indices,
-                                                      stokes_matrix);
-
-      stokes_constraints.distribute_local_to_global (local_rhs,
-                                                    local_dof_indices,
-                                                    stokes_rhs);
+                                                      stokes_matrix,
+                                                      stokes_rhs);
+      else
+       stokes_constraints.distribute_local_to_global (local_rhs,
+                                                      local_dof_indices,
+                                                      stokes_rhs);
     }
 
   rebuild_stokes_matrix = false;

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.