Skip to content

Commit 4f6d0fb

Browse files
authored
Hopefully fix LT with Ewald (#348)
1 parent b659055 commit 4f6d0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Spiral/LuttingerTisza.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function luttinger_tisza_exchange(sys::System; k, ϵ=0)
2525
A = Sunny.precompute_dipole_ewald_at_wavevector(sys.crystal, (1,1,1), k) * sys.ewald.μ0_μB²
2626
A = reshape(A, Na, Na)
2727
for i in 1:Na, j in 1:Na
28-
J_k[:, i, :, j] += gs[i]' * A[i, j] * gs[j] / 2
28+
J_k[:, i, :, j] += sys.gs[i]' * A[i, j] * sys.gs[j] / 2
2929
end
3030
end
3131

0 commit comments

Comments
 (0)