Rtoax / 2D3D-TI-FD-RTM-cuda

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]
GNU General Public License v3.0
34 stars 9 forks source link

wrong if condition #2

Open Ashutosh-Londhe opened 6 years ago

Ashutosh-Londhe commented 6 years ago

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 be if(id < nx*nz)

file: Toa_gpu_2dtti_rtm_adcigs_1orderfunciton.cu

Rtoax commented 6 years ago

thanks, you are right.😁