     real4 *body_vel) {
 
   float4 acc_i = {0.0f, 0.0f, 0.0f, 0.0f};
-  ngb = -1;
-  float ds2_min = 1.0e10f;
 
 
   /*********** set necessary thread constants **********/


#define TEXTURES
#define OLDPREFIX
#define DOGRAV


template<int DIM2, int SHIFT>

          if((n_stack1 - c_stack0) >= (LMEM_STACK_SIZE << SHIFT))
          {
            //We overwrote our current stack
#if 0
            apprCount = -1; 
#endif
            return acc_i;	 
          }
        }

