Skip to content

Commit

Permalink
fix SFD (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer authored Jan 25, 2022
1 parent 5c2c75c commit 907a79b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/flavors/DQMC/measurements/extensions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,13 @@ function dia_K_x(mc, G, idxs)
N = length(lattice(mc))

Kx = ComplexF64(0)
f = 1.0 + (model(mc).U > 0)
for shift in 0:N:size(G, 1)-1
flv = max(nflavors(field(mc)), nflavors(model(mc)))
if flv == 1; f = 2.0
elseif flv == 2; f = 1.0
else error("The diamagnetic contribution to the superfluid density has no implementation for $flv flavors")
end

for shift in 0 : N : flv*N - 1
for i in idxs
for (src, trg) in dir2srctrg[i]
# c_j^† c_i = δ_ij - G[i, j], but δ always 0 cause no onsite
Expand Down

0 comments on commit 907a79b

Please sign in to comment.