-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #234 #235
Conversation
src/sire/morph/_repex.py
Outdated
delta = -1.0 * ( | ||
beta1 * (nrgs1[0] - nrgs1[1] + (pressure1 * (volume1 - volume0) * N_A)) | ||
+ beta0 * (nrgs0[1] - nrgs0[0] + (pressure0 * (volume0 - volume1) * N_A)) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be written without the factor of -1 at the start, i.e. so it matches the formatting for the NVT case. Just makes things a bit clearer when glancing between them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the suggested change, everything is fine. Once ready, I'll merge this across into #237 so we can merge all of the fixes in one go.
Cheers.
The sign is now multiplied out 👍 |
This PR closes #234. Adds the required
N_A
for volume correction inNPT
ensembles.devel
into this branch before issuing this pull request (e.g. by runninggit pull origin devel
): y