mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-14 19:23:42 +02:00
Corrected bug in twist factor
This commit is contained in:
parent
208d03d245
commit
b4dadba051
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ function ztwist(gp::GaugeParm{T,G}, lp::SpaceParm{N,M,B,D}) where {T,G,N,M,B,D}
|
||||||
|
|
||||||
function plnf(ipl)
|
function plnf(ipl)
|
||||||
id1, id2 = lp.plidx[ipl]
|
id1, id2 = lp.plidx[ipl]
|
||||||
return convert(Complex{T},exp(2im * pi * lp.ntw[ipl]/(lp.iL[id1]*lp.iL[id2]*gp.ng)))
|
return convert(Complex{T},exp(2im * pi * lp.ntw[ipl]/(gp.ng)))
|
||||||
end
|
end
|
||||||
|
|
||||||
return ntuple(i->plnf(i), M)
|
return ntuple(i->plnf(i), M)
|
||||||
|
@ -124,7 +124,7 @@ end
|
||||||
function ztwist(gp::GaugeParm{T,G}, lp::SpaceParm{N,M,B,D}, ipl::Int) where {T,G,N,M,B,D}
|
function ztwist(gp::GaugeParm{T,G}, lp::SpaceParm{N,M,B,D}, ipl::Int) where {T,G,N,M,B,D}
|
||||||
|
|
||||||
id1, id2 = lp.plidx[ipl]
|
id1, id2 = lp.plidx[ipl]
|
||||||
return convert(Complex{T},exp(2im * pi * lp.ntw[ipl]/(lp.iL[id1]*lp.iL[id2]*gp.ng)))
|
return convert(Complex{T},exp(2im * pi * lp.ntw[ipl]/(gp.ng)))
|
||||||
end
|
end
|
||||||
export ztwist
|
export ztwist
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue