Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrogantGao committed Sep 20, 2024
1 parent 7fc4b0d commit 89d0024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ewald2D/Ewald2D_short.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function Ewald2D_short_energy_i(i::Int, interaction::Ewald2DInteraction{T}, posi
rcsq = interaction.r_c^2
for j in 1:interaction.n_atoms
coord_1, coord_2, r_sq = position_check3D(position[i], position[j], boundary, interaction.r_c)
if !iszero(r_sq) && (rsq < rcsq)
if !iszero(r_sq) && (r_sq < rcsq)
q_1 = q[i]
q_2 = q[j]
E = Ewald2D_Es_pair(q_1, q_2, interaction.α, r_sq)
Expand Down

0 comments on commit 89d0024

Please sign in to comment.