From: kanschat Date: Wed, 28 Sep 2011 01:56:07 +0000 (+0000) Subject: updated tests X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a0a9267c2b65106165ed43b3bc0c03ac0d8c5c7;p=dealii-svn.git updated tests git-svn-id: https://svn.dealii.org/trunk@24452 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/solver_relaxation_02.cc b/tests/lac/solver_relaxation_02.cc index 268e686065..65de156ff5 100644 --- a/tests/lac/solver_relaxation_02.cc +++ b/tests/lac/solver_relaxation_02.cc @@ -79,19 +79,17 @@ int main() { deallog << "Block size " << blocksize << std::endl; - const unsigned int n_blocks = dim/blocksize; - std::vector indices(blocksize); - + const unsigned int n_blocks = dim/blocksize; RelaxationBlock,double>::AdditionalData relax_data(0.8); PreconditionBlock,double>::AdditionalData prec_data(blocksize, 0.8); - relax_data.block_list.initialize(n_blocks); + relax_data.block_list.reinit(n_blocks, dim, blocksize); for (unsigned int block=0;block,double> prec_jacobi; prec_jacobi.initialize(A, prec_data); diff --git a/tests/lac/solver_relaxation_03.cc b/tests/lac/solver_relaxation_03.cc index 205244cef7..7050b697d4 100644 --- a/tests/lac/solver_relaxation_03.cc +++ b/tests/lac/solver_relaxation_03.cc @@ -84,9 +84,7 @@ int main() { deallog << "Block size " << blocksize << std::endl; - const unsigned int n_blocks = dim/blocksize; - std::vector indices(blocksize); - + const unsigned int n_blocks = dim/blocksize; RelaxationBlock,double>::AdditionalData relax_data(0.8); PreconditionBlock,double>::AdditionalData prec_data(blocksize, 0.8); @@ -94,14 +92,14 @@ int main() std::vector bperm(n_blocks); std::vector ibperm(n_blocks); - relax_data.block_list.initialize(n_blocks); + relax_data.block_list.reinit(n_blocks, dim, blocksize); for (unsigned int block=0;block