From e4b8af77bc46491a0748d57484457b7bf00a6b8e Mon Sep 17 00:00:00 2001 From: kronbichler Date: Tue, 28 May 2013 12:05:12 +0000 Subject: [PATCH] Another minor fix. git-svn-id: https://svn.dealii.org/trunk@29656 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/precondition.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/lac/precondition.h b/deal.II/include/deal.II/lac/precondition.h index c0c2cf9ac7..6f78cf440b 100644 --- a/deal.II/include/deal.II/lac/precondition.h +++ b/deal.II/include/deal.II/lac/precondition.h @@ -1822,9 +1822,9 @@ PreconditionChebyshev::initialize (const MATRIX &matrix, min_eigenvalue = data.max_eigenvalue/data.smoothing_range; } - const double alpha = (data.smoothing_range > 0 ? + const double alpha = (data.smoothing_range > 1. ? max_eigenvalue / data.smoothing_range : - max_eigenvalue / min_eigenvalue); + std::min(0.9*max_eigenvalue, min_eigenvalue)); delta = (max_eigenvalue-alpha)*0.5; theta = (max_eigenvalue+alpha)*0.5; -- 2.39.5