]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove 2x compress() in step-42
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 4 Nov 2013 20:18:59 +0000 (20:18 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 4 Nov 2013 20:18:59 +0000 (20:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@31539 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e9b743a589a658704ece5274b69ba26e72ffdaa0..795047c5299ed8b4afbee1c1da1ec33cb48a8828 100644 (file)
@@ -1624,8 +1624,6 @@ namespace Step42
 
     constraints_hanging_nodes.set_zero(distributed_solution);
     constraints_hanging_nodes.set_zero(newton_rhs);
-    distributed_solution.compress(VectorOperation::insert);
-    newton_rhs.compress(VectorOperation::insert);
 
     TrilinosWrappers::PreconditionAMG preconditioner;
     {
@@ -1796,7 +1794,6 @@ namespace Step42
                 const double alpha = std::pow(0.5, static_cast<double>(i));
                 tmp_vector = old_solution;
                 tmp_vector.sadd(1 - alpha, alpha, distributed_solution);
-                tmp_vector.compress(VectorOperation::add);
 
                 TimerOutput::Scope t(computing_timer, "Residual and lambda");
 

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.