summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mg2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg2d.c b/mg2d.c
index 453a9c4..0cb9dd8 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -548,7 +548,7 @@ int mg2d_solve(MG2DContext *ctx)
mg2di_log(&priv->logger, MG2D_LOG_VERBOSE,
"finished toplevel iteration %d, residual %g -> %g (%g)\n",
i, res_prev, res_cur, res_prev / res_cur);
- if (res_cur / res_prev > 1.0) {
+ if (res_cur / res_prev > 1e1) {
mg2di_log(&priv->logger, MG2D_LOG_ERROR, "A multigrid iteration diverged\n");
ret = MG2D_ERR_DIVERGE;
goto fail;