aboutsummaryrefslogtreecommitdiff
path: root/mg2d.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-01-20 15:25:21 +0100
committerAnton Khirnov <anton@khirnov.net>2020-01-20 15:26:32 +0100
commit7f88b344adb92434814c82c839a513fc1ccf3b11 (patch)
treee15002aaec442bbc8cc876e3a91703ff092f2a69 /mg2d.c
parent869ed8e18efc9ee602f45267776cd179c80ec3af (diff)
mg2d: add a designated error code for reaching maxiter
Allows to reliably distinguish it from other error cases. Also specify that the values of u are defined for this error code.
Diffstat (limited to 'mg2d.c')
-rw-r--r--mg2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg2d.c b/mg2d.c
index e0a83ed..b669569 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -1149,7 +1149,7 @@ int mg2d_solve(MG2DContext *ctx)
res_prev = res_cur;
}
- ret = -EDOM;
+ ret = MG2D_ERR_MAXITER_REACHED;
mg2di_log(&priv->logger, MG2D_LOG_ERROR,
"Maximum number of iterations (%d) reached\n", ctx->maxiter);
fail: