From 56fbe7c2fe92dba7ddddd96b4212cba9fc370603 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Wed, 17 Apr 2013 05:55:48 +0000 Subject: [PATCH] Avoid differences in matrix-free block sizes among test systems which eventually lead to different numbers of CG iterations because of different roundoff accumulation. Now, the test should pass as long as threads are enabled. git-svn-id: https://svn.dealii.org/trunk@29315 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/matrix_free/estimate_condition_number_mass.cc | 4 +++- .../matrix_free/estimate_condition_number_mass/cmp/generic | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/matrix_free/estimate_condition_number_mass.cc b/tests/matrix_free/estimate_condition_number_mass.cc index 0a78638d37..f3761d5f13 100644 --- a/tests/matrix_free/estimate_condition_number_mass.cc +++ b/tests/matrix_free/estimate_condition_number_mass.cc @@ -100,7 +100,9 @@ void test (const FiniteElement &fe) MatrixFree mf_data; { const QGauss<1> quad (fe_degree+1); - mf_data.reinit (dof, constraints, quad); + typename MatrixFree::AdditionalData data; + data.tasks_block_size = 2; + mf_data.reinit (dof, constraints, quad, data); } MatrixFreeTest mf (mf_data); diff --git a/tests/matrix_free/estimate_condition_number_mass/cmp/generic b/tests/matrix_free/estimate_condition_number_mass/cmp/generic index c48447e61a..d2da6a3304 100644 --- a/tests/matrix_free/estimate_condition_number_mass/cmp/generic +++ b/tests/matrix_free/estimate_condition_number_mass/cmp/generic @@ -76,17 +76,17 @@ DEAL:2d:cg::Condition number estimate: 7.6e+02 DEAL:2d:: DEAL:3d::Testing FE_Q<3>(1) DEAL:3d:cg::Starting value 0.035 -DEAL:3d:cg::Convergence step 38 value 0 +DEAL:3d:cg::Convergence step 37 value 0 DEAL:3d:cg::Condition number estimate: 58. DEAL:3d:: DEAL:3d::Testing FE_Q<3>(2) DEAL:3d:cg::Starting value 0.018 -DEAL:3d:cg::Convergence step 81 value 0 +DEAL:3d:cg::Convergence step 80 value 0 DEAL:3d:cg::Condition number estimate: 1.6e+02 DEAL:3d:: DEAL:3d::Testing FE_Q<3>(5) DEAL:3d:cg::Starting value 0.0043 -DEAL:3d:cg::Convergence step 498 value 0 +DEAL:3d:cg::Convergence step 494 value 0 DEAL:3d:cg::Condition number estimate: 8.9e+03 DEAL:3d:: DEAL:3d::Testing FE_Q<3>(QGaussLobatto(6)) -- 2.39.5