]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
step-42: remove unnecessary compress() calls
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 23:00:15 +0000 (23:00 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 23:00:15 +0000 (23:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@28350 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ddfa4ab464178cb39074c4f6291e1dcd2ab70e67..8987076171176559b5475853a0aba42470dc0535 100644 (file)
@@ -1267,8 +1267,6 @@ namespace Step42
 
     constraints.distribute (distributed_solution);
 
-    distributed_solution.compress (VectorOperation::add);
-
     solution = distributed_solution;
   }
 
@@ -1319,8 +1317,6 @@ namespace Step42
         t.restart();
         system_matrix_newton = 0;
         system_rhs_newton = 0;
-        system_matrix_newton.compress();
-       system_rhs_newton.compress();
         assemble_nl_system (solution);  //compute Newton-Matrix
         MPI_Barrier (mpi_communicator);
         t.stop();
@@ -1354,7 +1350,6 @@ namespace Step42
             MPI_Barrier (mpi_communicator);
             t.restart();
             system_rhs_newton = 0;
-           system_rhs_newton.compress();
 
             solution = old_solution;
             residual_nl_system (solution);

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.