aboutsummaryrefslogtreecommitdiff
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>2020-07-13 10:58:04 +0200
commitf52486a2382b5e1036b608d663ccece5d2de220d (patch)
treeb6e0303132a03d6bf581eaa9b452b048c3d5a96e /mg2d.c
parentb487acb4843a8413ddcecce398a44d0c7c050c61 (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 103f514..fe98c73 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -860,6 +860,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;
}