]> https://gitweb.dealii.org/ - dealii.git/commitdiff
omega in PreconditionBlockSOR can be changed
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 12 Apr 2000 19:22:21 +0000 (19:22 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 12 Apr 2000 19:22:21 +0000 (19:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@2707 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/precondition_block.h
deal.II/lac/include/lac/precondition_block.templates.h

index 5c64cf7236feb7917b6a6d4b8c6573d81a72922c..1875e3fd44460ac2d5350203fefff7324929ed2d 100644 (file)
@@ -223,6 +223,11 @@ class PreconditionBlockSOR : public PreconditionBlock<number,inverse_type>
                                      */
     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<number,inverse_type>
                                     /**
                                      * Damping parameter.
                                      */
-    const number omega;
+    number omega;
 };
 
 
index 3084c1fb19e934b9ecf3969954fc48915becbc5b..1a299727cf3df9a151cfe90bbcfdf982e8e4855c 100644 (file)
@@ -135,6 +135,17 @@ template<typename number, typename inverse_type>
 PreconditionBlockSOR<number,inverse_type>::~PreconditionBlockSOR(){}
 
 
+
+template<typename number, typename inverse_type>
+void
+PreconditionBlockSOR<number,inverse_type>::set_omega(number om)
+{
+  omega = om;
+}
+
+
+
+
 template <typename number, typename inverse_type>
 template <typename number2>
 void PreconditionBlockSOR<number,inverse_type>::operator() (Vector<number2>       &dst,

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


Typeset in Trocchi and Trocchi Bold Sans Serif.