From 79088a4d83dc928b81f9e83e182dd9faf06be085 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 28 May 2015 15:26:21 -0500 Subject: [PATCH] Fix a test where we may inadvertently divide by zero. The test is also just overly convoluted. --- include/deal.II/lac/solver_gmres.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5