]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make variables const and thus Intel C++ compiler more happy.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 15:15:14 +0000 (15:15 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 15:15:14 +0000 (15:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@4656 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.2.templates
deal.II/lac/include/lac/sparse_matrix.templates.h
deal.II/lac/include/lac/sparse_vanka.h

index 60134fec6d9795b8002861477761ca875eac70a3..a5a8a174387c7971d7e3a59d209cced69d475edd 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -45,25 +45,25 @@ template TYPE2 SparseMatrix<TYPEMAT>::residual (Vector<TYPE2> &,
 
 template void SparseMatrix<TYPEMAT>::precondition_SSOR (Vector<TYPE2> &,
                                                      const Vector<TYPE2> &,
-                                                     TYPEMAT) const;
+                                                     const TYPEMAT) const;
 
 template void SparseMatrix<TYPEMAT>::precondition_SOR (Vector<TYPE2> &,
                                                     const Vector<TYPE2> &,
-                                                    TYPEMAT) const;
+                                                    const TYPEMAT) const;
 
 template void SparseMatrix<TYPEMAT>::precondition_TSOR (Vector<TYPE2> &,
                                                     const Vector<TYPE2> &,
-                                                    TYPEMAT) const;
+                                                    const TYPEMAT) const;
 
 template void SparseMatrix<TYPEMAT>::precondition_Jacobi (Vector<TYPE2> &,
                                                        const Vector<TYPE2> &,
-                                                       TYPEMAT) const;
-
-template void SparseMatrix<TYPEMAT>::SOR (Vector<TYPE2> &, TYPEMAT) const;
-template void SparseMatrix<TYPEMAT>::TSOR (Vector<TYPE2> &, TYPEMAT) const;
-template void SparseMatrix<TYPEMAT>::SSOR (Vector<TYPE2> &, TYPEMAT) const;
-template void SparseMatrix<TYPEMAT>::SOR_step (Vector<TYPE2> &, const Vector<TYPE2> &, TYPEMAT) const;
-template void SparseMatrix<TYPEMAT>::TSOR_step (Vector<TYPE2> &, const Vector<TYPE2> &, TYPEMAT) const;
-template void SparseMatrix<TYPEMAT>::SSOR_step (Vector<TYPE2> &, const Vector<TYPE2> &, TYPEMAT) const;
+                                                       const TYPEMAT) const;
+
+template void SparseMatrix<TYPEMAT>::SOR (Vector<TYPE2> &, const TYPEMAT) const;
+template void SparseMatrix<TYPEMAT>::TSOR (Vector<TYPE2> &, const TYPEMAT) const;
+template void SparseMatrix<TYPEMAT>::SSOR (Vector<TYPE2> &, const TYPEMAT) const;
+template void SparseMatrix<TYPEMAT>::SOR_step (Vector<TYPE2> &, const Vector<TYPE2> &, const TYPEMAT) const;
+template void SparseMatrix<TYPEMAT>::TSOR_step (Vector<TYPE2> &, const Vector<TYPE2> &, const TYPEMAT) const;
+template void SparseMatrix<TYPEMAT>::SSOR_step (Vector<TYPE2> &, const Vector<TYPE2> &, const TYPEMAT) const;
 
 
index 1f983f31b534c0d9959af28590be327efdfa2d3e..7763ded034cd1ff76a46bd14c32e15fa4d7aff03 100644 (file)
@@ -1022,14 +1022,16 @@ void SparseMatrix<number>::print (std::ostream &out) const
 template <typename number>
 void SparseMatrix<number>::print_formatted (std::ostream &out,
                                            const unsigned int precision,
-                                           bool scientific,
-                                           unsigned int width,
+                                           const bool scientific,
+                                           const unsigned int width_,
                                            const char* zero_string,
                                            const double denominator) const
 {
   Assert (cols != 0, ExcMatrixNotInitialized());
   Assert (val != 0, ExcMatrixNotInitialized());
 
+  unsigned int width = width_;
+  
   std::ios::fmtflags old_flags = out.flags();
   unsigned int old_precision = out.precision (precision);
 
index b13b58b1c0d55a815f2c2d6859fcede620bc40e0..57a9e517a4a08f04cf2bf976686ce818ec7375d4 100644 (file)
@@ -262,7 +262,7 @@ class SparseVanka
     template<typename number2>
     void apply_preconditioner (Vector<number2>         &dst,
                               const Vector<number2>   &src,
-                              const std::vector<bool> *dof_mask = 0) const;    
+                              const std::vector<bool> * const dof_mask = 0) const;    
 
                                     /**
                                      * Determine an estimate for the

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.