mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 19:53:41 +02:00
Wrap threadIdx, etc in an inline function
This commit is contained in:
parent
65a619e554
commit
584b92edb0
7 changed files with 21 additions and 18 deletions
|
@ -44,7 +44,7 @@ end
|
|||
|
||||
function krnl_sfcoupling!(rm, U::AbstractArray{T}, Ubnd, lp::SpaceParm{N,M,B,D}) where {T,N,M,B,D}
|
||||
|
||||
b, r = CUDA.threadIdx().x, CUDA.blockIdx().x
|
||||
b, r = assign_thx()
|
||||
I = point_coord((b,r), lp)
|
||||
it = I[N]
|
||||
|
||||
|
@ -99,7 +99,7 @@ end
|
|||
|
||||
function krnl_setbnd_it0!(U, phi1, phi2, lp::SpaceParm{N,M,B,D}) where {N,M,B,D}
|
||||
|
||||
b, r = CUDA.threadIdx().x, CUDA.blockIdx().x
|
||||
b, r = assign_thx()
|
||||
it = point_time((b,r), lp)
|
||||
|
||||
SFBC = (B == BC_SF_AFWB) || (B == BC_SF_ORBI)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue