]> https://gitweb.dealii.org/ - dealii.git/commitdiff
preconditioner change
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 6 Jan 2003 15:14:49 +0000 (15:14 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 6 Jan 2003 15:14:49 +0000 (15:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@6870 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/sparse_matrices.cc

index d67c37ae5f561fb4a7101ff05adeaa47d731de29..68275c811a2d2a31043c3df3517408d94e80e0cf 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2002 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2002, 2003 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -56,14 +56,17 @@ check_vmult_quadratic(std::vector<double>& residuals,
   sor.initialize(A, 1.2);
   PreconditionSSOR<MATRIX> ssor;
   ssor.initialize(A, 1.2);
+
+  PreconditionBlock<MATRIX, float>::AdditionalData data(sqrt(A.n()+.3), 1.2);
+  
   PreconditionBlockJacobi<MATRIX, float> block_jacobi;
-  block_jacobi.initialize(A, (unsigned int) (sqrt(A.n()+.3)), 1.2);
+  block_jacobi.initialize(A, data);
   block_jacobi.invert_diagblocks();
   PreconditionBlockSSOR<MATRIX, float> block_ssor;
-  block_ssor.initialize(A, (unsigned int) (sqrt(A.n()+.3)), 1.2);
+  block_ssor.initialize(A, data);
   block_ssor.invert_diagblocks();
   PreconditionBlockSOR<MATRIX, float> block_sor;
-  block_sor.initialize(A, (unsigned int) (sqrt(A.n()+.3)), 1.2);
+  block_sor.initialize(A, data);
   block_sor.invert_diagblocks();
   
   u = 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.