Skip to content

Commit

Permalink
function is added
Browse files Browse the repository at this point in the history
  • Loading branch information
cometscome committed Jan 5, 2022
1 parent 68f55a9 commit c5a20d2
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/Wilsonloop.jl
Original file line number Diff line number Diff line change
Expand Up @@ -629,33 +629,6 @@ module Wilsonloop
error("$name is not supported!")
end

Dim = length(L)
loops = Array{Array{Wilsonline{Dim},1},1}(undef,length(couplinglist))
for (i,name) in enumerate(couplinglist)
if name == "plaquette"
loops[i] = make_plaq(Dim = Dim)
elseif name == "rectangular"
loops[i] = make_rect(Dim = Dim)
elseif name =="chair"
loops[i] = make_chair(Dim = Dim)
elseif name == "polyakov_t"
μ= Dim
loops[i] = make_polyakov(μ,L[μ],Dim = Dim)
elseif name == "polyakov_z"
@assert Dim > 3 "Dimension should be Dim > 3 but now Dim = $Dim"
μ= 3
loops[i] = make_polyakov(μ,L[μ],Dim = Dim)
elseif name == "polyakov_y"
@assert Dim > 2 "Dimension should be Dim > 2 but now Dim = $Dim"
μ= 2
loops[i] = make_polyakov(μ,L[μ],Dim = Dim)
elseif name == "polyakov_x"
μ= 1
loops[i] = make_polyakov(μ,L[μ],Dim = Dim)
else
error("$name is not supported!")
end
end
return loops
end

Expand Down

0 comments on commit c5a20d2

Please sign in to comment.