mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-06-29 05:19:27 +02:00
factor of 1/2 on spatial bnd links for plaquette action density (matches openQCD)
This commit is contained in:
parent
3c59b9251a
commit
094390c1ee
1 changed files with 16 additions and 0 deletions
|
@ -303,6 +303,10 @@ function Eoft_plaq(Eslc, U, gp::GaugeParm{T,G,NN}, lp::SpaceParm{N,M,B,D}, ymws:
|
|||
for it in 1:lp.iL[end]
|
||||
Eslc[it,ipl] = 2*Etmp[it]
|
||||
end
|
||||
if OBC ## Spatial plaquettes at time boundary count half (Luescher)
|
||||
Eslc[1,ipl] = Etmp[1]
|
||||
Eslc[end,ipl] = Etmp[end]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -403,6 +407,12 @@ function Eoft_clover(Eslc, U, gp::GaugeParm, lp::SpaceParm{4,M,B,D}, ymws::YMwor
|
|||
for it in 1:lp.iL[end]
|
||||
Eslc[it,ipl1] = Etmp[it]/8
|
||||
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.@cuda threads=lp.bsz blocks=lp.rsz krnl_add_et!(ymws.rm, ymws.frc2, lp)
|
||||
|
@ -412,6 +422,12 @@ function Eoft_clover(Eslc, U, gp::GaugeParm, lp::SpaceParm{4,M,B,D}, ymws::YMwor
|
|||
Eslc[it,ipl2] = Etmp[it]/8
|
||||
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
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue