       , max_supp
       , grid_size
       , over
-      > (gcf, grid, uvo_shared, vis_shared, n, myU, myV);
+      > (gcf, grid, uvo_shared, vis_shared, locp, myU, myV);
   }
 }
 

      grid_point_u = 0
    , grid_point_v = 0;

  for (int i = 0; i < n; i++) {
    int myConvU, myConvV, myGridU, myGridV, u, v;
    u = uvwp[i].u;
    v = uvwp[i].v;

  , Double4c grid[grid_size][grid_size]
  , const w_traits<w_planes>::uvw_type * uvwp
  , const Double4c * visp
  , int2 * locp
  ) {
  __shared__ Pregridded uvo_shared[max_samples_n];
  __shared__ Double4c vis_shared[max_samples_n];
