summaryrefslogtreecommitdiff
path: root/mg2d.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-04-09 09:45:16 +0200
committerAnton Khirnov <anton@khirnov.net>2019-07-26 10:27:11 +0200
commit3eebc8df5edb3ca82e8f726a6f2555f6d2a70dfb (patch)
treef805799d24cc2c073799a2a754b83fa637afb6ca /mg2d.c
parent765b385c8c9ab25fe0a9f6fead1be4028e226024 (diff)
egs: add higher-order finite difference operators
Diffstat (limited to 'mg2d.c')
-rw-r--r--mg2d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mg2d.c b/mg2d.c
index e0a83ed..ca821d2 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -854,6 +854,8 @@ static int mg_levels_init(MG2DContext *ctx)
switch (ctx->fd_stencil) {
case 1: op_interp = GRID_TRANSFER_LAGRANGE_3; break;
case 2: op_interp = GRID_TRANSFER_LAGRANGE_5; break;
+ case 3: op_interp = GRID_TRANSFER_LAGRANGE_7; break;
+ case 4: op_interp = GRID_TRANSFER_LAGRANGE_7; break;
default: return -ENOSYS;
}