Skip to main content
. 2013 Jan 28;40(2):023301. doi: 10.1118/1.4774361

Table .

Algorithm VIII. Implementation of function fwd_pthread (on host).

Input:npth, p˜0, αpth, u˜ pth
Output:u˜ pth
 1: C_p˜0p˜0 {Copy from host to constant memory}
 2: fornx = 0 toNx/Npth − 1 do
 3:   x = (nx + npthNx/Npths + xmin
 4:   forny = 0 toNy − 1 do
 5:      y = nyΔs + ymin
 6:      C_α pth α pth [nx][ny][:] {Copy from host to constant
memory}
 7:      K_fwdsph  ⟨⟨⟨ (Nv, Nr), (Nf, 1, 1) ⟩⟩⟩ (x, y, D_u˜ pth )
 8:   endfor
 9: endfor
 10: u˜ pth D_u˜ pth {Copy from global memory to host}