Corrected bug in set boundary fields

This commit is contained in:
Alberto Ramos 2021-11-10 19:27:42 +01:00
parent f480507c46
commit 656ff5dd58

View file

@ -92,7 +92,7 @@ end
function setbndfield(U, phi, lp::SpaceParm{N,M,B,D}) where {N,M,B,D} function setbndfield(U, phi, lp::SpaceParm{N,M,B,D}) where {N,M,B,D}
CUDA.@sync begin CUDA.@sync begin
CUDA.@cuda threads=lp.bsz blocks=lp.rsz krnl_setbnd_it0!(U, phi[1,1], phi[1,2], lp) CUDA.@cuda threads=lp.bsz blocks=lp.rsz krnl_setbnd_it0!(U, phi[1], phi[2], lp)
end end
return nothing return nothing