]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
logging flags for ReductionControl
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 May 1999 11:54:58 +0000 (11:54 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 May 1999 11:54:58 +0000 (11:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@1262 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 75471e2dbbd29a42665289ec493224f60c8fc3c9..aae67793cfb476747ac8287ae7a8f6056527666a 100644 (file)
@@ -166,7 +166,10 @@ class SolverControl : public Subscriptor
  * class) is reduced by a given factor. This is useful in cases where
  * you don't want to solve exactly, but rather want to gain two digits.
  */
-class ReductionControl : public SolverControl {
+class ReductionControl
+  :
+  public SolverControl
+{
   public:
                                     /**
                                      * Constructor.  Provide the
@@ -176,7 +179,9 @@ class ReductionControl : public SolverControl {
                                      */
     ReductionControl (const unsigned int maxiter,
                      const double tolerance,
-                     const double reduce);
+                     const double reduce,
+                     const bool log_history = false,
+                     const bool log_result = true);
 
                                     /**
                                      * Virtual destructor is needed
index 302823a644e6956679df35bd2d87e72faca60ab7..5fc7b74c64965d3dce4483f51c182e4eba2427c3 100644 (file)
@@ -10,7 +10,8 @@
 SolverControl::SolverControl (const unsigned int maxiter,
                              const double tolerance,
                              const bool log_history,
-                             const bool log_result) :
+                             const bool log_result)
+               :
                maxsteps(maxiter),
                tol(tolerance),
                lvalue(1.e300),
@@ -75,8 +76,11 @@ SolverControl::last_step() const
 
 ReductionControl::ReductionControl(const unsigned int n,
                                   const double tol,
-                                  const double red) :
-               SolverControl (n, tol),
+                                  const double red,
+                                  const bool log_history,
+                                  const bool log_result)
+               :
+               SolverControl (n, tol, log_history, log_result),
                reduce(red)
 {};
 

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.