From: Wolfgang Bangerth Date: Thu, 28 May 2015 20:26:21 +0000 (-0500) Subject: Fix a test where we may inadvertently divide by zero. X-Git-Tag: v8.3.0-rc1~141^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F972%2Fhead;p=dealii.git Fix a test where we may inadvertently divide by zero. The test is also just overly convoluted. --- diff --git a/include/deal.II/lac/solver_gmres.h b/include/deal.II/lac/solver_gmres.h index 996f6894e7..0e5c6af011 100644 --- a/include/deal.II/lac/solver_gmres.h +++ b/include/deal.II/lac/solver_gmres.h @@ -754,7 +754,7 @@ SolverGMRES::solve (const MATRIX &A, //s=0 is a lucky breakdown, the solver will reach convergence, //but we must not divide by zero here. - if (numbers::is_finite(1./s)) + if (s != 0) vv *= 1./s; // for eigenvalues, get the resulting coefficients from the