sandbox/bugs/QuadtreeLevelZeroGhostcells.c
Inconsistent 5x5 stencil on root level of trees
#define BGHOSTS 2
int main() {
(2);
init_grid
scalar A[];
(0)
foreach_level[] = 1.;
A
foreach_dimension() {
[left] = neumann (0);
A[right] = neumann (0);
A}
({A}, 0);
boundary_level
(0)
foreach_levelforeach_neighbor()
fprintf (stderr, "%g %g %g\n", x, y, A[]);
}
There are NaNs in some locations.
set size ratio -1
plot 'log' u 1:2:3 w labels