From: guido Date: Mon, 6 Jan 2003 15:14:49 +0000 (+0000) Subject: preconditioner change X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad06aae7ec6cd0aab059ed9239fcd6fe89a5e10;p=dealii-svn.git preconditioner change git-svn-id: https://svn.dealii.org/trunk@6870 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/sparse_matrices.cc b/tests/lac/sparse_matrices.cc index d67c37ae5f..68275c811a 100644 --- a/tests/lac/sparse_matrices.cc +++ b/tests/lac/sparse_matrices.cc @@ -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& residuals, sor.initialize(A, 1.2); PreconditionSSOR ssor; ssor.initialize(A, 1.2); + + PreconditionBlock::AdditionalData data(sqrt(A.n()+.3), 1.2); + PreconditionBlockJacobi block_jacobi; - block_jacobi.initialize(A, (unsigned int) (sqrt(A.n()+.3)), 1.2); + block_jacobi.initialize(A, data); block_jacobi.invert_diagblocks(); PreconditionBlockSSOR block_ssor; - block_ssor.initialize(A, (unsigned int) (sqrt(A.n()+.3)), 1.2); + block_ssor.initialize(A, data); block_ssor.invert_diagblocks(); PreconditionBlockSOR 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.;