From ab12db126b9d06329e70497cf87a6984d43cbf27 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 5 May 2003 13:50:44 +0000 Subject: [PATCH] Some style issues. git-svn-id: https://svn.dealii.org/trunk@7563 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/solver_gmres.h | 41 +++++++++++++++----------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/deal.II/lac/include/lac/solver_gmres.h b/deal.II/lac/include/lac/solver_gmres.h index 49aa884d7a..1be1adaf9d 100644 --- a/deal.II/lac/include/lac/solver_gmres.h +++ b/deal.II/lac/include/lac/solver_gmres.h @@ -219,9 +219,10 @@ class SolverGMRES : public Solver * array of @p{VECTOR} of * length @p{max_size}. */ - TmpVectors(unsigned int max_size, - VectorMemory& vmem); - /** + TmpVectors(const unsigned int max_size, + VectorMemory &vmem); + + /** * Delete all allocated vectors. */ ~TmpVectors(); @@ -232,7 +233,7 @@ class SolverGMRES : public Solver * unused before, an error * occurs. */ - VECTOR& operator[] (unsigned int i) const; + VECTOR& operator[] (const unsigned int i) const; /** * Get vector number @@ -244,18 +245,22 @@ class SolverGMRES : public Solver * used to reinit it to the * proper dimensions. */ - VECTOR& operator() (unsigned int i, - const VECTOR& temp); + VECTOR& operator() (const unsigned int i, + const VECTOR &temp); private: /** - * Pool were vectors are obtained from. + * Pool were vectors are + * obtained from. */ - VectorMemory& mem; + VectorMemory &mem; + /** - * Field for storing the vectors. + * Field for storing the + * vectors. */ std::vector data; + /** * Offset of the first * vector. This is for later @@ -264,7 +269,8 @@ class SolverGMRES : public Solver */ unsigned int offset; }; - /** + + /** * No copy constructor. */ SolverGMRES (const SolverGMRES&); @@ -275,8 +281,9 @@ class SolverGMRES : public Solver template inline -SolverGMRES::TmpVectors::TmpVectors (unsigned int max_size, - VectorMemory& vmem) +SolverGMRES::TmpVectors:: +TmpVectors (const unsigned int max_size, + VectorMemory &vmem) : mem(vmem), data (max_size, 0), @@ -297,7 +304,7 @@ SolverGMRES::TmpVectors::~TmpVectors () template inline VECTOR& -SolverGMRES::TmpVectors::operator[] (unsigned int i) const +SolverGMRES::TmpVectors::operator[] (const unsigned int i) const { Assert (i+offset::TmpVectors::operator[] (unsigned int i) const template inline VECTOR& -SolverGMRES::TmpVectors::operator() (unsigned int i, - const VECTOR& temp) +SolverGMRES::TmpVectors::operator() (const unsigned int i, + const VECTOR &temp) { Assert (i+offset::TmpVectors::operator() (unsigned int i, template SolverGMRES::SolverGMRES (SolverControl &cn, - VectorMemory &mem, - const AdditionalData &data) : + VectorMemory &mem, + const AdditionalData &data) : Solver (cn,mem), additional_data(data) {} -- 2.39.5