diff --git a/src/functions.cu b/src/functions.cu index ca80e91b..07735da0 100644 --- a/src/functions.cu +++ b/src/functions.cu @@ -1055,7 +1055,7 @@ __global__ void phase_rotate(cufftComplex *data, long M, long N, float xphs, flo v = dv * (i-N); } - phase = -2.0*(u+v); + phase = 2.0*(u+v); #if (__CUDA_ARCH__ >= 300 ) sincospif(phase, &s, &c); #else @@ -1149,6 +1149,8 @@ __global__ void residual(cufftComplex *Vr, cufftComplex *Vm, cufftComplex *Vo, l } + + __global__ void residual_XCORR(cufftComplex *Vr, cufftComplex *Vm, cufftComplex *Vo, float alpha, long numVisibilities) { int i = threadIdx.x + blockDim.x * blockIdx.x;