]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make code a bit easier to read.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 May 2010 19:45:28 +0000 (19:45 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 May 2010 19:45:28 +0000 (19:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@21096 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_cg.h

index a13dbd2afcae60105beaa9f15d90ca9fa17072e1..3f182e64daa45f5188f2e65d868d9209565a40df 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -376,7 +376,7 @@ SolverCG<VECTOR>::solve (const MATRIX         &A,
        print_vectors(it, x, g, d);
 
        conv = this->control().check(it,res);
-       if (conv)
+       if (conv != SolverControl::iterate)
          break;
 
        precondition.vmult(h,g);

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.