From: Guido Kanschat Date: Wed, 12 Apr 2000 19:22:21 +0000 (+0000) Subject: omega in PreconditionBlockSOR can be changed X-Git-Tag: v8.0.0~20685 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b6a0948be08d4c35f62549261d9a31caa1e11ff;p=dealii.git omega in PreconditionBlockSOR can be changed git-svn-id: https://svn.dealii.org/trunk@2707 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/precondition_block.h b/deal.II/lac/include/lac/precondition_block.h index 5c64cf7236..1875e3fd44 100644 --- a/deal.II/lac/include/lac/precondition_block.h +++ b/deal.II/lac/include/lac/precondition_block.h @@ -223,6 +223,11 @@ class PreconditionBlockSOR : public PreconditionBlock */ virtual ~PreconditionBlockSOR(); + /** + * Set the relaxation parameter. + */ + void set_omega(number omega); + /** * Execute block SOR preconditioning. * Make sure that the right @@ -248,7 +253,7 @@ class PreconditionBlockSOR : public PreconditionBlock /** * Damping parameter. */ - const number omega; + number omega; }; diff --git a/deal.II/lac/include/lac/precondition_block.templates.h b/deal.II/lac/include/lac/precondition_block.templates.h index 3084c1fb19..1a299727cf 100644 --- a/deal.II/lac/include/lac/precondition_block.templates.h +++ b/deal.II/lac/include/lac/precondition_block.templates.h @@ -135,6 +135,17 @@ template PreconditionBlockSOR::~PreconditionBlockSOR(){} + +template +void +PreconditionBlockSOR::set_omega(number om) +{ + omega = om; +} + + + + template template void PreconditionBlockSOR::operator() (Vector &dst,