]> 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 11:17:40 +0000 (11:17 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 11:17:40 +0000 (11:17 +0000)
Add TODOs.

git-svn-id: https://svn.dealii.org/trunk@4624 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_control.h

index 3175d430733731d01bec302c69705e3e48479374..c7b5d0de4b1bc5859381edcd3a63b8f3b59b2e9e 100644 (file)
@@ -327,15 +327,17 @@ class SolverControl : public Subscriptor
                                      * known it is 0.
                                      */
     double       failure_residual;
-
     
                                     /**
-                                     * Log convergence history to @p{deallog}.
+                                     * Log convergence history to
+                                     * @p{deallog}.
                                      */
+//TODO:[GK] leading underscores are prohibited by the C++ standard in user code. what is the reason here anyway?
     bool         _log_history;
                                     /**
                                      * Log only every nth step.
                                      */
+//TODO:[GK] leading underscores are prohibited by the C++ standard in user code. what is the reason here anyway?
     unsigned int _log_frequency;
     
                                     /**
@@ -346,6 +348,7 @@ class SolverControl : public Subscriptor
                                      * success together with @p{lstep}
                                      * and @p{lvalue} are logged.
                                      */
+//TODO:[GK] leading underscores are prohibited by the C++ standard in user code. what is the reason here anyway?
     bool         _log_result;
 };
 
@@ -452,7 +455,7 @@ SolverControl::max_steps () const
 
 
 inline unsigned int
-SolverControl::set_max_steps (unsigned int newval)
+SolverControl::set_max_steps (const unsigned int newval)
 {
   unsigned int old = maxsteps;
   maxsteps = newval;
@@ -485,7 +488,7 @@ SolverControl::tolerance () const
 
 
 inline double
-SolverControl::set_tolerance (double t)
+SolverControl::set_tolerance (const double t)
 {
   double old = tol;
   tol = t;
@@ -494,7 +497,7 @@ SolverControl::set_tolerance (double t)
 
 
 inline void
-SolverControl::log_history (bool newval)
+SolverControl::log_history (const bool newval)
 {
   _log_history = newval;
 }
@@ -509,7 +512,7 @@ SolverControl::log_history () const
 
 
 inline void
-SolverControl::log_result (bool newval)
+SolverControl::log_result (const bool newval)
 {
   _log_result = newval;
 }
@@ -523,7 +526,7 @@ ReductionControl::reduction () const
 
 
 inline double
-ReductionControl::set_reduction (double t)
+ReductionControl::set_reduction (const double t)
 {
   double old = reduce;
   reduce = t;

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.