Skip to content

Commit

Permalink
Remove RdotF term in NPT box force. (#193)
Browse files Browse the repository at this point in the history
* Remove RdotF term from NPT box force.

* Bump version number.
  • Loading branch information
sschoenholz committed May 2, 2022
1 parent 1e3e23e commit d809de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions jax_md/simulate.py
Expand Up @@ -682,10 +682,8 @@ def U(eps):

dUdV = grad(U)
KE2 = util.high_precision_sum(velocity ** 2 * mass)
R = space.transform(box_fn(vol), position)
RdotF = util.high_precision_sum(R * force)

return alpha * KE2 + RdotF - dUdV(0.0) - pressure * vol * dim
return alpha * KE2 - dUdV(0.0) - pressure * vol * dim

def sinhx_x(x):
"""Taylor series for sinh(x) / x as x -> 0."""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -33,7 +33,7 @@

setuptools.setup(
name='jax-md',
version='0.1.27',
version='0.1.28',
license='Apache 2.0',
author='Google',
author_email='jax-md-dev@google.com',
Expand Down

0 comments on commit d809de1

Please sign in to comment.