]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
update examples wrt compress()
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Feb 2013 23:21:10 +0000 (23:21 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Feb 2013 23:21:10 +0000 (23:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@28563 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-18/step-18.cc
deal.II/examples/step-42/step-42.cc

index 838627b7290bd40c841a666f1ac6c0c897efa24c..899fa55f2c4013b59008265d3d9eb0cf730317b2 100644 (file)
@@ -1141,7 +1141,7 @@ namespace Step18
         }
 
     // Now compress the vector and the system matrix:
-    system_matrix.compress();
+    system_matrix.compress(VectorOperation::add);
     system_rhs.compress(VectorOperation::add);
 
     
index 454abed00124bbbed49738e8167f7d79b011b8fb..79ca13e053e96a92343fea03d5f9aaa8ce05a675 100644 (file)
@@ -851,7 +851,7 @@ namespace Step42
                                                   system_matrix_newton, system_rhs_newton, true);
         };
 
-    system_matrix_newton.compress ();
+    system_matrix_newton.compress (VectorOperation::add);
     system_rhs_newton.compress (VectorOperation::add);
 
     computing_timer.exit_section("Assembling");
@@ -1026,7 +1026,7 @@ namespace Step42
                   mass_matrix);
             }
 
-    mass_matrix.compress ();
+    mass_matrix.compress (VectorOperation::add);
   }
 
   // @sect4{PlasticityContactProblem::update_solution_and_constraints}

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.