]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update on comments
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Aug 2000 22:24:20 +0000 (22:24 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Aug 2000 22:24:20 +0000 (22:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@3222 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_gmres.h

index a05ea9620494cb32db3d02b40f06b08c01b368a9..52179ed200a44f2dd0ed99f89efff2151d0b6a77 100644 (file)
@@ -203,13 +203,18 @@ SolverGMRES<VECTOR>::solve (const MATRIX& A,
                                   // but whoever wrote this code in the first
                                   // place should get stoned, IMHO! (WB)
 
+                                  // This code was definitely NOT
+                                  // written by the fathers of DEAL
+                                  // and it is very unclear to me,
+                                  // why such a strange piece of code
+                                  // should be here. It has a lot of
+                                  // flaws, the old GMRES of DEAL did
+                                  // not have. (GK)
+//TODO: Check, why there are two different start residuals.
+//TODO: Allocate vectors only when needed.
+
   deallog.push("GMRES");
 
-                                  // Originally, here was a strange computation of
-                                  // the number of auxiliary vectors, using
-                                  // non-standardized members of the matrix.
-                                  // Since it is up to the user to decide on the
-                                  // number of auxiliary vectors, this was removed. GK
   const unsigned int n_tmp_vectors = (additional_data.max_n_tmp_vectors);
 
                                   // allocate an array of n_tmp_vectors
@@ -217,6 +222,10 @@ SolverGMRES<VECTOR>::solve (const MATRIX& A,
                                   // object; resize them but do not set their
                                   // values since they will be overwritten soon
                                   // anyway.
+
+                                  // This is really bad since vectors
+                                  // should only be allocated if
+                                  // really needed. (GK)
   vector<VECTOR*> tmp_vectors (n_tmp_vectors, 0);
   for (unsigned int tmp=0; tmp<n_tmp_vectors; ++tmp)
     {

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.