From e8b0288f69a3e6bf55a2c470d90a0216d05e58e8 Mon Sep 17 00:00:00 2001 From: guido Date: Fri, 6 Oct 2000 10:41:33 +0000 Subject: [PATCH] Improved breakdown criterion? git-svn-id: https://svn.dealii.org/trunk@3386 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/solver_qmrs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/lac/include/lac/solver_qmrs.h b/deal.II/lac/include/lac/solver_qmrs.h index 8cf343f4b1..356a30fe13 100644 --- a/deal.II/lac/include/lac/solver_qmrs.h +++ b/deal.II/lac/include/lac/solver_qmrs.h @@ -326,10 +326,10 @@ while (state == SolverControl::iterate) A.vmult(t,q); // Step 2 sigma = q*t; - + //TODO: Find a really good breakdown criterion // The absolute one detects breakdown instead of convergence - if (fabs(sigma) < additional_data.breakdown) + if (fabs(sigma/rho) < additional_data.breakdown) return breakdown; // Step 3 alpha = rho/sigma; -- 2.39.5