Skip to content

Commit ae0e872

Browse files
authored
Update inter.py
1 parent 60b6e1e commit ae0e872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dmff/classical/inter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get_LJ_energy(dr_vec, sig, eps, box):
4949
if self.isSwitch:
5050
x = (dr_norm - self.r_switch) / (self.r_cut - self.r_switch)
5151
S = 1 - 6. * x ** 5 + 15. * x ** 4 - 10. * x ** 3
52-
jnp.where(dr_norm > self.r_switch, E, E * S)
52+
E = jnp.where(dr_norm > self.r_switch, E, E * S)
5353
E = jnp.where(dr_norm >= self.r_cut, 0., E)
5454

5555
return E

0 commit comments

Comments
 (0)