2D3D-TI-FD-RTM-cuda icon indicating copy to clipboard operation
2D3D-TI-FD-RTM-cuda copied to clipboard

wrong if condition

Open Ashutosh-Londhe opened this issue 5 years ago • 1 comments

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

Ashutosh-Londhe avatar Jul 27 '18 07:07 Ashutosh-Londhe

thanks, you are right.😁

Rtoax avatar Aug 20 '18 04:08 Rtoax