From: kronbichler Date: Tue, 28 May 2013 12:05:12 +0000 (+0000) Subject: Another minor fix. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4b8af77bc46491a0748d57484457b7bf00a6b8e;p=dealii-svn.git Another minor fix. git-svn-id: https://svn.dealii.org/trunk@29656 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;