From 895a1de1d3750466665498e5f922530942c3e506 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 10 Oct 2012 20:59:51 +0000 Subject: [PATCH] Avoid a warning about a potentially uninitialized variable. git-svn-id: https://svn.dealii.org/trunk@27059 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/trilinos_block_vector.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deal.II/include/deal.II/lac/trilinos_block_vector.h b/deal.II/include/deal.II/lac/trilinos_block_vector.h index a5c22e2d03..49be01fe9a 100644 --- a/deal.II/include/deal.II/lac/trilinos_block_vector.h +++ b/deal.II/include/deal.II/lac/trilinos_block_vector.h @@ -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) -- 2.39.5