]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
step-42: better compress call
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 22:25:24 +0000 (22:25 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 22:25:24 +0000 (22:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@28349 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e3a5a347357f503466ef7566176be8306f887f51..ddfa4ab464178cb39074c4f6291e1dcd2ab70e67 100644 (file)
@@ -1224,8 +1224,8 @@ namespace Step42
 
     constraints_hanging_nodes.set_zero (distributed_solution);
     constraints_hanging_nodes.set_zero (system_rhs_newton);
-    distributed_solution.compress ();
-    system_rhs_newton.compress ();
+    distributed_solution.compress(VectorOperation::insert);
+    system_rhs_newton.compress(VectorOperation::insert);
 
     MPI_Barrier (mpi_communicator);
     t.restart();

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.