From: guido Date: Tue, 4 May 1999 11:54:58 +0000 (+0000) Subject: logging flags for ReductionControl X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa3c20e3d949f56d956e37bc65483e295ab308bc;p=dealii-svn.git logging flags for ReductionControl git-svn-id: https://svn.dealii.org/trunk@1262 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/solver_control.h b/deal.II/lac/include/lac/solver_control.h index 75471e2dbb..aae67793cf 100644 --- a/deal.II/lac/include/lac/solver_control.h +++ b/deal.II/lac/include/lac/solver_control.h @@ -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 diff --git a/deal.II/lac/source/solver_control.cc b/deal.II/lac/source/solver_control.cc index 302823a644..5fc7b74c64 100644 --- a/deal.II/lac/source/solver_control.cc +++ b/deal.II/lac/source/solver_control.cc @@ -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) {};