From e6c975d48f918856396ce4ae6824b9c387930f3f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 20 Jan 2020 15:46:53 +0100 Subject: mg2d: export the residual norm to the caller --- mg2d.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mg2d.c') diff --git a/mg2d.c b/mg2d.c index b669569..95bd1ee 100644 --- a/mg2d.c +++ b/mg2d.c @@ -1155,6 +1155,7 @@ int mg2d_solve(MG2DContext *ctx) fail: mg2di_log(&priv->logger, MG2D_LOG_ERROR, "The solver failed to converge\n"); finish: + ctx->residual_max = s_root->residual_max; mg2di_timer_stop(&priv->timer_solve); return ret; } -- cgit v1.2.3