diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-10-18 12:12:08 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-10-18 12:12:08 +0200 |
commit | c74c3e0ba75ea10f93d8d40e4c796d1c442c070b (patch) | |
tree | 2548675698424bf6db806cb61d6e82590f07ab1f /_interp_c.c | |
parent | 1f3e3fdfe841a0fe2e2122d8e6019b974f1e354c (diff) |
interp: add 2D Lagrangian interpolation in C
Diffstat (limited to '_interp_c.c')
-rw-r--r-- | _interp_c.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/_interp_c.c b/_interp_c.c new file mode 100644 index 0000000..f2269c8 --- /dev/null +++ b/_interp_c.c @@ -0,0 +1,21 @@ +#include <math.h> + +#define STENCIL 2 +#include "_interp_c_template.c" +#undef STENCIL + +#define STENCIL 4 +#include "_interp_c_template.c" +#undef STENCIL + +#define STENCIL 6 +#include "_interp_c_template.c" +#undef STENCIL + +#define STENCIL 8 +#include "_interp_c_template.c" +#undef STENCIL + +#define STENCIL 10 +#include "_interp_c_template.c" +#undef STENCIL |