]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Teach SolverQMRS how to deal with block vectors.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 20 Mar 2008 13:45:46 +0000 (13:45 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 20 Mar 2008 13:45:46 +0000 (13:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@15920 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/lac/include/lac/solver_qmrs.h

index 06d213e89e5904ff04c4fd28df9fdacb8af5efe5..b5d2f34ae4936d9179911b3ba5c850c8b0b827d7 100644 (file)
@@ -214,6 +214,12 @@ an integer id of the current thread.
 <h3>lac</h3>
 
 <ol>
+<li> Fixed: The SolverQMRS class could not deal with block vectors
+and block matrices. This is now fixed.
+<br>
+(WB 2008/3/20)
+</li>
+
 <li> Fixed: The implementation of SparseILU::decompose was rather
 inefficient in that it accessed random elements of the matrix in its
 inner loop. It has been replaced by the algorithm given in the book
index 28b401fad0d0fb501b62c3116f6404249ab8f093..da6676615a608e2c87ef6ec3b014fc36a29b9e3b 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
+//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -270,10 +270,10 @@ SolverQMRS<VECTOR>::solve (const MATRIX         &A,
                                   // resize the vectors, but do not set
                                   // the values since they'd be overwritten
                                   // soon anyway.
-  Vv->reinit(x.size(), true);
-  Vp->reinit(x.size(), true);
-  Vq->reinit(x.size(), true);
-  Vt->reinit(x.size(), true);
+  Vv->reinit(x, true);
+  Vp->reinit(x, true);
+  Vq->reinit(x, true);
+  Vt->reinit(x, true);
 
   step = 0;
   

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.