mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-06-29 05:19:27 +02:00
changed time-boundary of Eoft_clover and Eoft_plaq to match openQCD
This commit is contained in:
parent
349ff2405f
commit
58685f63a2
1 changed files with 10 additions and 14 deletions
|
@ -430,29 +430,25 @@ function Eoft_clover(Eslc, U, gp::GaugeParm, lp::SpaceParm{4,M,B,D}, ymws::YMwor
|
||||||
end
|
end
|
||||||
Etmp .= reshape(Array(CUDA.reduce(+, ymws.rm;dims=tp)),lp.iL[end])/V3
|
Etmp .= reshape(Array(CUDA.reduce(+, ymws.rm;dims=tp)),lp.iL[end])/V3
|
||||||
for it in 1:lp.iL[end]
|
for it in 1:lp.iL[end]
|
||||||
Eslc[it,ipl1] = Etmp[it]/8
|
if (B == BC_OPEN) && (it == 1 || it == lp.iL[end])
|
||||||
|
Eslc[it,ipl1] = 0.0
|
||||||
|
else
|
||||||
|
Eslc[it,ipl1] = Etmp[it]/8
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
## tentative (weight 1/2 on spatial planes on boundary)
|
|
||||||
#if (B == BC_OPEN) && (ipl1 >= 4)
|
|
||||||
# Eslc[end,ipl1] = Etmp[end]/16
|
|
||||||
# Eslc[1,ipl1] = Etmp[1]/16
|
|
||||||
#end
|
|
||||||
|
|
||||||
CUDA.@sync begin
|
CUDA.@sync begin
|
||||||
CUDA.@cuda threads=lp.bsz blocks=lp.rsz krnl_add_et!(ymws.rm, ymws.frc2, lp)
|
CUDA.@cuda threads=lp.bsz blocks=lp.rsz krnl_add_et!(ymws.rm, ymws.frc2, lp)
|
||||||
end
|
end
|
||||||
Etmp .= reshape(Array(CUDA.reduce(+, ymws.rm;dims=tp)),lp.iL[end])/V3
|
Etmp .= reshape(Array(CUDA.reduce(+, ymws.rm;dims=tp)),lp.iL[end])/V3
|
||||||
for it in 1:lp.iL[end]
|
for it in 1:lp.iL[end]
|
||||||
Eslc[it,ipl2] = Etmp[it]/8
|
if (B == BC_OPEN) && (it == 1 || it == lp.iL[end])
|
||||||
|
Eslc[it,ipl2] = 0.0
|
||||||
|
else
|
||||||
|
Eslc[it,ipl2] = Etmp[it]/8
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
## tentative (weight 1/2 on spatial planes on boundary)
|
|
||||||
#if (B == BC_OPEN) && (ipl2 >= 4)
|
|
||||||
# Eslc[end,ipl2] = Etmp[end]/16
|
|
||||||
# Eslc[1,ipl2] = Etmp[1]/16
|
|
||||||
#end
|
|
||||||
|
|
||||||
return nothing
|
return nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue