aboutsummaryrefslogtreecommitdiff
path: root/mg2d.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-12 09:06:03 +0200
committerAnton Khirnov <anton@khirnov.net>2019-05-17 09:44:36 +0200
commit1980fccbc872d3c203034f236951eb9834fe916e (patch)
tree7b313b42a694f8fc814b988110a63cf39c2b62d5 /mg2d.c
parentf430bdb2823ac7596c4db24f230e37fda0bc55ff (diff)
transfer: unify the code for full-weighted transfer
Also, rename the operator names to make more sense.
Diffstat (limited to 'mg2d.c')
-rw-r--r--mg2d.c4
1 files changed, 2 insertions, 2 deletions
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;