From: guido Date: Thu, 8 Nov 2001 08:30:57 +0000 (+0000) Subject: Parameter for right preconditioning X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2595b18a6bf59b8c1f8297e8dbe19d07e3b97e20;p=dealii-svn.git Parameter for right preconditioning git-svn-id: https://svn.dealii.org/trunk@5183 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/solver_gmres.h b/deal.II/lac/include/lac/solver_gmres.h index 8c78df9250..0071e5efae 100644 --- a/deal.II/lac/include/lac/solver_gmres.h +++ b/deal.II/lac/include/lac/solver_gmres.h @@ -88,12 +88,16 @@ class SolverGMRES : public Solver { /** * Constructor. By default, - * set the number of temporary - * vectors to 30. + * set the number of + * temporary vectors to 30 + * and preconditioning from + * left.. */ - AdditionalData(const unsigned int max_n_tmp_vectors = 30) + AdditionalData(const unsigned int max_n_tmp_vectors = 30, + bool right_preconditioning = false) : - max_n_tmp_vectors(max_n_tmp_vectors) + max_n_tmp_vectors(max_n_tmp_vectors), + right_preconditioning(right_preconditioning) {}; /** @@ -101,6 +105,10 @@ class SolverGMRES : public Solver * tmp vectors. */ unsigned int max_n_tmp_vectors; + /** + * Flag for right preconditioning. + */ + bool right_preconditioning; }; /** @@ -270,7 +278,7 @@ unsigned int dim = 0; // left or a right preconditioner. at // present, left is default, but both // ways are implemented - const bool left_precondition = true; + const bool left_precondition = ! additional_data.right_preconditioning; // define two aliases VECTOR &v = *tmp_vectors[0];