From: Wolfgang Bangerth Date: Thu, 24 Aug 2017 17:25:10 +0000 (-0600) Subject: Remove an unused variable. X-Git-Tag: v9.0.0-rc1~1171^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ef30cf8f70d66807cc3d573cb747578b19c8c42;p=dealii.git Remove an unused variable. The variable's documentation suggests that it will be used for a later implementation of a 'vector rotation', but that has not materialized in 10+ years, so delete it. --- diff --git a/include/deal.II/lac/solver_gmres.h b/include/deal.II/lac/solver_gmres.h index 447c7089b5..42cd38d614 100644 --- a/include/deal.II/lac/solver_gmres.h +++ b/include/deal.II/lac/solver_gmres.h @@ -102,12 +102,6 @@ namespace internal * Field for storing the vectors. */ std::vector::Pointer> data; - - /** - * Offset of the first vector. This is for later when vector rotation - * will be implemented. - */ - unsigned int offset; }; } } @@ -519,8 +513,7 @@ namespace internal VectorMemory &vmem) : mem(vmem), - data (max_size), - offset(0) + data (max_size) {} @@ -529,28 +522,28 @@ namespace internal inline VectorType & TmpVectors::operator[] (const unsigned int i) const { - Assert (i+offset inline VectorType & - TmpVectors::operator() (const unsigned int i, - const VectorType &temp) + TmpVectors::operator() (const unsigned int i, + const VectorType &temp) { - Assert (i+offset::Pointer(mem)); - data[i-offset]->reinit(temp); + data[i] = std::move(typename VectorMemory::Pointer(mem)); + data[i]->reinit(temp); } - return *data[i-offset]; + return *data[i]; }