mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 03:33:42 +02:00
Corrected bug for setting boundary fields
Thanks to Fernando Perez Panadero
This commit is contained in:
parent
527d669ceb
commit
63ff01a2be
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ function krnl_setbnd_it0!(U, phi1, phi2, lp::SpaceParm{N,M,B,D}) where {N,M,B,D
|
||||||
|
|
||||||
SFBC = (B == BC_SF_AFWB) || (B == BC_SF_ORBI)
|
SFBC = (B == BC_SF_AFWB) || (B == BC_SF_ORBI)
|
||||||
|
|
||||||
if (it == 0) && SFBC
|
if (it == 1) && SFBC
|
||||||
for id in 1:N-1
|
for id in 1:N-1
|
||||||
U[b,id,r] = bndfield(phi1,phi2,lp.iL[id])
|
U[b,id,r] = bndfield(phi1,phi2,lp.iL[id])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue