Skip to content

Commit

Permalink
Fix sign in volume correction term. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Oct 4, 2024
1 parent d4f7e83 commit 03b7b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sire/morph/_repex.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def replica_exchange(
pressure1 = ensemble1.pressure()

delta = beta1 * (
nrgs1[1] - nrgs1[0] - (pressure1 * (volume1 - volume0) * N_A)
) + beta0 * (nrgs0[0] - nrgs0[1] - (pressure0 * (volume0 - volume1) * N_A))
(nrgs1[1] - nrgs1[0]) + (pressure1 * (volume1 - volume0) * N_A)
) + beta0 * ((nrgs0[0] - nrgs0[1]) + (pressure0 * (volume0 - volume1) * N_A))

from math import exp

Expand Down

0 comments on commit 03b7b90

Please sign in to comment.