/** # Morton versus Cartesian indexing On this page we test the socalled "locality" of a morton-style interator versus a regular Cartesian iterator. We test it for a $32^3$ grid and assume that our results are somehow scaleable to other grids. We focus the analysis on the distance in iteration-sequence space between cells that are neighbors in the 3D-grid space */ #include "grid/octree.h" scalar m[],xyz[]; int main(){ int maxlevel = 5; int cells = pow(2,3*maxlevel); double cartarr[cells]; double mortarr[cells]; int i=0; while (i