From: wolf Date: Mon, 5 May 2003 13:50:44 +0000 (+0000) Subject: Some style issues. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab12db126b9d06329e70497cf87a6984d43cbf27;p=dealii-svn.git Some style issues. git-svn-id: https://svn.dealii.org/trunk@7563 0785d39b-7218-0410-832d-ea1e28bc413d --- 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) {}