Skip to content

Fix Resize move and add a simple NPT test #204

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

Merged
merged 3 commits into from
Oct 16, 2017
Merged

Fix Resize move and add a simple NPT test #204

merged 3 commits into from
Oct 16, 2017

Conversation

Luthaf
Copy link
Member

@Luthaf Luthaf commented Oct 15, 2017

Fix #203

I only added test for an Argon system, molecular system will need #79 to be resolved first.

@Luthaf
Copy link
Member Author

Luthaf commented Oct 15, 2017

And thank you very much for finding the issue here @g-bauer, this one was really bothering me, but I could not find the origin of the problem.

@g-bauer g-bauer self-requested a review October 15, 2017 22:35
// compute the translation vector of the center-of-mass (com) of a
// molecule and apply it to all its particles. Note that to do
// this, the com of a molecule *always* has to reside inside the
// simulation cell.
let old_com = system.molecule_com(mi);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't make a difference, but I think it would be more clear to use

let old_com = self.previous.molecule_com(mi);

here. Just a nitpick, we can also leave it as is.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this seems more clear =)

@g-bauer
Copy link
Contributor

g-bauer commented Oct 16, 2017

Thanks for the fast fix. Maybe you can comment on my suggestion and I'll merge.

@g-bauer
Copy link
Contributor

g-bauer commented Oct 16, 2017

Another "unknown error". Do you want to rerun the test? Else I'd merge.

@Luthaf
Copy link
Member Author

Luthaf commented Oct 16, 2017

I restarted the build.

Just wondering, do you have the rights to restart jobs too?

@g-bauer
Copy link
Contributor

g-bauer commented Oct 16, 2017

Yes, I just wasn't logged in. Next time I can restart the build myself.

@g-bauer g-bauer merged commit 462a510 into lumol-org:master Oct 16, 2017
@Luthaf Luthaf deleted the npt-tests branch October 16, 2017 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibly bug in resize MC move
2 participants