sandbox/Antoonvh/thi3d.c
High-order interpolation
Higher-order interpolation can be more appealing altough it is
approx. 15 times more expensive than regular interpolate()
in 3D.


#include "grid/octree.h"
#include "higher-order.h"
#define interpolate interpolate_5
#define quartic linear
#include "utils.h"
scalar s[];
int main() {
= 4;
L0 (-L0/2.05, -L0/2.5, -L0/3.);
origin (8);
init_grid foreach()
[] = exp(-sq(x) - sq(y) - sq(z));
sboundary({s});
output_ppm (s, file = "sn.png", n = 380, max = 1);
output_ppm (s, file = "si.png", n = 380, quartic = true, max = 1);
}