Skip to content
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

Bfo spin #1355

Merged
merged 3 commits into from
Mar 5, 2019
Merged

Bfo spin #1355

merged 3 commits into from
Mar 5, 2019

Conversation

julient31
Copy link
Collaborator

@julient31 julient31 commented Mar 4, 2019

Summary

The changes are correcting a confusion between i and ii atom lists in the compute_single_pair functions, in the SPIN package.

Related Issues

Incorrect values for pair_spin interactions when multiple similar spin pairs were declared.

Author(s)

Julien Tranchida

Licensing

By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).

Backward Compatibility

No backward compatibility for inputs.

Implementation Notes

The corrections are only affecting a small portion of the code (the beginning of the compute_single_pair functions).
Energy preservation for multiple pair_spin interactions was checked.

Post Submission Checklist

  • The feature or features in this pull request is complete
  • Licensing information is complete
  • Corresponding author information is complete
  • The source code follows the LAMMPS formatting guidelines
  • Suitable new documentation files and/or updates to the existing docs are included
  • The added/updated documentation is integrated and tested with the documentation build system
  • The feature has been verified to work with the conventional build system
  • The feature has been verified to work with the CMake based build system
  • A package specific README file has been included or updated
  • One or more example input decks are included

Further Information, Files, and Links

This work was done by Julien Tranchida during a stay at CEA in France, on his host's computer.
This is why some commits were done with another GitHub account (Theophile Chirac).

Theophile Chirac and others added 3 commits February 4, 2019 17:21
- correct in magelec (if ii<n)
- check correct, apply it to other pairs
- correction of pair_spin calculations
- corrects an error between i and ii lists in single/pair calc.
Copy link
Contributor

@sjplimp sjplimp left a comment

Choose a reason for hiding this comment

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

looks fine to me

@akohlmey akohlmey merged commit 390fc87 into lammps:master Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants