From 1980fccbc872d3c203034f236951eb9834fe916e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 12 May 2019 09:06:03 +0200 Subject: transfer: unify the code for full-weighted transfer Also, rename the operator names to make more sense. --- mg2d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mg2d.c') diff --git a/mg2d.c b/mg2d.c index 5f2ce22..84985d7 100644 --- a/mg2d.c +++ b/mg2d.c @@ -405,9 +405,9 @@ static int mg_levels_init(MG2DContext *ctx) if (cur->solver->domain_size[0] == 2 * (cur->child->solver->domain_size[0] - 1) + 1) { if (ctx->fd_stencil == 1) - op_restrict = GRID_TRANSFER_FW_3; + op_restrict = GRID_TRANSFER_FW_2; else - op_restrict = GRID_TRANSFER_FW_5; + op_restrict = GRID_TRANSFER_FW_3; } else op_restrict = op_interp; -- cgit v1.2.3