From 656ff5dd58d12929f7cd2a42aa7318b79aff9278 Mon Sep 17 00:00:00 2001 From: Alberto Ramos Date: Wed, 10 Nov 2021 19:27:42 +0100 Subject: [PATCH] Corrected bug in set boundary fields --- src/YM/YMsf.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/YM/YMsf.jl b/src/YM/YMsf.jl index 2bebb62..94e9e23 100644 --- a/src/YM/YMsf.jl +++ b/src/YM/YMsf.jl @@ -92,7 +92,7 @@ end function setbndfield(U, phi, lp::SpaceParm{N,M,B,D}) where {N,M,B,D} 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 return nothing