* the last step are stored in this object and can be recovered upon
* catching an exception of this class.
*/
-
class NoConvergence : public dealii::ExceptionBase
{
public:
* specifies the whether the final result is logged to @p deallog. Default
* is yes.
*/
- SolverControl(const unsigned int n = 100,
- const double tol = 1.e-10,
- const bool log_history = false,
- const bool log_result = true);
+ explicit SolverControl(const unsigned int n = 100,
+ const double tol = 1.e-10,
+ const bool log_history = false,
+ const bool log_result = true);
/**
* Virtual destructor is needed as there are virtual functions in this
* have the same meaning as those of the constructor of the SolverControl
* constructor.
*/
- ReductionControl(const unsigned int maxiter = 100,
- const double tolerance = 1.e-10,
- const double reduce = 1.e-2,
- const bool log_history = false,
- const bool log_result = true);
+ explicit ReductionControl(const unsigned int maxiter = 100,
+ const double tolerance = 1.e-10,
+ const double reduce = 1.e-2,
+ const bool log_history = false,
+ const bool log_result = true);
/**
* Initialize with a SolverControl object. The result will emulate
* Constructor. Provide exactly the same arguments as the constructor of
* the SolverControl class.
*/
- IterationNumberControl(const unsigned int maxiter = 100,
- const double tolerance = 1e-12,
- const bool log_history = false,
- const bool log_result = true);
+ explicit IterationNumberControl(const unsigned int maxiter = 100,
+ const double tolerance = 1e-12,
+ const bool log_history = false,
+ const bool log_result = true);
/**
* Initialize with a SolverControl object. The result will emulate
* convergence. Other arguments have the same meaning as those of the
* constructor of the SolverControl.
*/
- ConsecutiveControl(const unsigned int maxiter = 100,
- const double tolerance = 1.e-10,
- const unsigned int n_consecutive_iterations = 2,
- const bool log_history = false,
- const bool log_result = false);
+ explicit ConsecutiveControl(const unsigned int maxiter = 100,
+ const double tolerance = 1.e-10,
+ const unsigned int n_consecutive_iterations = 2,
+ const bool log_history = false,
+ const bool log_result = false);
/**
* Initialize with a SolverControl object. The result will emulate