 
 #define TEXTURES
 #if 0
-#define OLDPREFIX
+#define _ORIG_SHMEM_
 #endif
 
 



    const int blockDim2 = NTHREAD2;
    __shared__ int shmem[15*(1 << blockDim2)];
    //    __shared__ int shmem[24*(1 << blockDim2)]; is possible on FERMI
    //    int             lmem[LMEM_STACK_SIZE];



        int nl_pre = 0;                                                     //Number of leaves that have already been processed

        while (n_bodies > 0) 
        {
          int nb    = min(n_bodies, NJMAX - n_direct);                    //Make sure number of bides to be extracted does not exceed
