|
| | SolverRichardson (SolverControl &cn, VectorMemory< VectorType > &mem, const AdditionalData &data=AdditionalData()) |
| |
| | SolverRichardson (SolverControl &cn, const AdditionalData &data=AdditionalData()) |
| |
| virtual | ~SolverRichardson () |
| |
| template<typename MatrixType , typename PreconditionerType > |
| void | solve (const MatrixType &A, VectorType &x, const VectorType &b, const PreconditionerType &precondition) |
| |
| template<typename MatrixType , typename PreconditionerType > |
| void | Tsolve (const MatrixType &A, VectorType &x, const VectorType &b, const PreconditionerType &precondition) |
| |
| void | set_omega (const double om=1.) |
| |
| virtual void | print_vectors (const unsigned int step, const VectorType &x, const VectorType &r, const VectorType &d) const |
| |
| | Solver (SolverControl &solver_control, VectorMemory< VectorType > &vector_memory) |
| |
| | Solver (SolverControl &solver_control) |
| |
| boost::signals2::connection | connect (const std_cxx11::function< SolverControl::State(const unsigned int iteration, const double check_value, const VectorType ¤t_iterate)> &slot) |
| |
| | Subscriptor () |
| |
| | Subscriptor (const Subscriptor &) |
| |
| virtual | ~Subscriptor () |
| |
| Subscriptor & | operator= (const Subscriptor &) |
| |
| void | subscribe (const char *identifier=0) const |
| |
| void | unsubscribe (const char *identifier=0) const |
| |
| unsigned int | n_subscriptions () const |
| |
| void | list_subscribers () const |
| |
| | DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects."<< "\"<< "(Additional information: "<< arg3<< ")\"<< "See the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "a lot more information on what this error means and "<< "how to fix programs in which it happens.") |
| |
| | DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier <"<< arg2<< "> subscribes to this object of class "<< arg1<< ". Consequently, it cannot be unsubscribed.") |
| |
| template<class Archive > |
| void | serialize (Archive &ar, const unsigned int version) |
| |
template<class VectorType = Vector<double>>
class SolverRichardson< VectorType >
Implementation of the preconditioned Richardson iteration method. The stopping criterion is the norm of the residual.
For the requirements on matrices and vectors in order to work with this class, see the documentation of the Solver base class.
Like all other solver classes, this class has a local structure called AdditionalData which is used to pass additional parameters to the solver, like damping parameters or the number of temporary vectors. We use this additional structure instead of passing these values directly to the constructor because this makes the use of the SolverSelector and other classes much easier and guarantees that these will continue to work even if number or type of the additional parameters for a certain solver changes.
For the Richardson method, the additional data is the damping parameter, which is the only content of the AdditionalData structure. By default, the constructor of the structure sets it to one.
Observing the progress of linear solver iterations
The solve() function of this class uses the mechanism described in the Solver base class to determine convergence. This mechanism can also be used to observe the progress of the iteration.
- Author
- Ralf Hartmann
Definition at line 61 of file solver_richardson.h.