Corrected bug for setting boundary fields

Thanks to Fernando Perez Panadero
This commit is contained in:
Alberto Ramos 2023-01-31 15:50:51 +01:00
parent 527d669ceb
commit 63ff01a2be

View file

@ -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)
if (it == 0) && SFBC
if (it == 1) && SFBC
for id in 1:N-1
U[b,id,r] = bndfield(phi1,phi2,lp.iL[id])
end