This is an open source program based on NVIDIA cuda, which includes two-dimensional and three-dimensional VTI media forward simulation and reverse time migration imaging, two-dimensional TTI media reverse time migration imaging, and ADCIGs extraction of the above media]
for GPU kernel total threads spawned will be (nx X nz) only but in function cal_migration id=threadIdx.x+blockIdx.x*blockDim.x
if(id < nnx*nnz)
rather it should beif(id < nx*nz)
file: Toa_gpu_2dtti_rtm_adcigs_1orderfunciton.cu