/* Wrap an array refinement function using the Numpy-C-API. */ #include #include #define NDIM 3 ///// /* int refine(double** in_dataptr, NpyIter* in_iter, NpyIter_IterNextFunc* in_iternext, long nz, long ny, long nx, long rz, long ry, long rx, double* r) { long x, y, z, cur, curnextlayerx, curlayery, curnextlayery, curlayerz, curnextlayerz; cur=0; clock_t ti, tf; ti=clock(); for(z=0;z