Skip to content

Commit 9be5d72

Browse files
committed
Infinite only for e2
1 parent f06a5e5 commit 9be5d72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/moves.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using ComponentArrays
22

33
function Arianna.perform_action!(system::Particles, action::Action)
44
e₁, e₂ = perform_action!(system, action)
5-
if isinf(e₁) || isinf(e₂)
5+
if isinf(e₂)
66
action.δe = zero(typeof(system.energy[1]))
77
else
88
action.δe = e₂ - e₁

0 commit comments

Comments
 (0)