]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a warning about a potentially uninitialized variable.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Oct 2012 20:59:51 +0000 (20:59 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Oct 2012 20:59:51 +0000 (20:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@27059 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_block_vector.h

index a5c22e2d03c70406013af7f0bd9a70725cbf3b2c..49be01fe9a95fa20f890d47c0df5ea9acf83af00 100644 (file)
@@ -196,7 +196,7 @@ namespace TrilinosWrappers
                                        * information.
                                        */
       void compress (const Epetra_CombineMode last_action);
-      
+
                                         /**
                                          * so it is not hidden
                                          */
@@ -525,15 +525,14 @@ namespace TrilinosWrappers
   {
     ::dealii::VectorOperation::values last_action_;
     if (last_action == Add)
-      last_action_ = ::dealii::VectorOperation::add;
+      this->compress(::dealii::VectorOperation::add);
     else if (last_action == Insert)
-      last_action_ = ::dealii::VectorOperation::insert;
+      this->compress(::dealii::VectorOperation::insert);
     else
       AssertThrow(false, ExcNotImplemented());
-
-    this->compress(last_action_);
   }
 
+
   inline
   void
   BlockVector::swap (BlockVector &v)

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.