* 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
*/
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
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),
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