From 1f946971edc77fced0365acfcf77132965389cb8 Mon Sep 17 00:00:00 2001 From: miguelcarcamov Date: Thu, 12 Jan 2017 17:28:06 -0300 Subject: [PATCH] fix multi-field --- src/functions.cu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;