From be276b488a1dc9c703471382799b16acdba07442 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 21 Jan 2019 13:31:45 +0100 Subject: mg2d: fix typo Do nb_relax_post steps in the post-correct relaxation phase, not nb_relax_pre. --- mg2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mg2d.c') diff --git a/mg2d.c b/mg2d.c index 1f5d86e..2fef7f9 100644 --- a/mg2d.c +++ b/mg2d.c @@ -327,7 +327,7 @@ static int mg_solve_subgrid(MG2DContext *ctx, MG2DLevel *level) level->time_reinit += gettime() - start; /* post-correct relaxation */ - for (int j = 0; j < ctx->nb_relax_pre; j++) { + for (int j = 0; j < ctx->nb_relax_post; j++) { ret = mg_relax_step(level); if (ret < 0) return ret; -- cgit v1.2.3