Skip to content

Commit

Permalink
revised energy_long_naive
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrogantGao committed Apr 4, 2024
1 parent 6097617 commit dbd8a51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/energy/energy_long_naive.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ function long_energy_us_k(qs::Vector{T}, poses::Vector{NTuple{3, T}}, cutoff::In
@assert M_min 1
@assert M_max length(uspara.sw)

Ek = zero(T)

for l in M_min:M_max
Ek = @distributed (+) for l in M_min:M_max
s, w = uspara.sw[l]
Ek += long_energy_sw_k(qs, poses, cutoff, L, s, w)
long_energy_sw_k(qs, poses, cutoff, L, s, w)
end
@debug "long range energy, direct su, k" Ek

Expand Down

0 comments on commit dbd8a51

Please sign in to comment.