/** # Analysis of data slice This code was used by Van Hooft et al. to obtain the results for the analysis of the adaptation function for for a slice of a 3D turbulent field. It was slightly modified here to read a $256\times256$ data slice instead of the original $1024\times1024$ data sample as presented in the paper. */ #include "grid/quadtree.h" #include "utils.h" #define nn (256) double zeta=0.00; char name[100],name2[100],name3[100],name4[100]; int maxlevel=8; scalar c[],err[]; int main(){ fprintf(ferr,"Matrix initialization\n"); double ** field = matrix_new(nn,nn,sizeof(double)); fprintf(ferr,"Open file\n"); FILE *fp; fp = fopen("slice.ux.dat", "r"); for (int i=0;i