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

unit tests for /soft pair styles #2283

Merged
merged 6 commits into from Aug 11, 2020
Merged

Conversation

abhiShandy
Copy link
Collaborator

@abhiShandy abhiShandy commented Aug 8, 2020

Summary

  • coul/cut/soft: needed hybrid/overlay
  • coul/long/soft: needed hybrid/overlay
  • tip4p/long/soft: needed hybrid/overlay
  • lj/charmm/coul/long/soft: had RESPA bug
  • lj/cut/coul/long/soft: had RESPA bug
  • lj/cut/soft: had RESPA bug
  • lj/class2/coul/cut/soft
  • lj/class2/coul/long/soft
  • lj/class2/soft
  • lj/cut/coul/cut/soft
  • lj/cut/tip4p/long/soft
  • morse/soft: had restart settings bug

Bugs fixed

  • missing restart_settings in morse/soft
  • respa neighbor lists

Related Issues

#2099

Author(s)

Abhishek Shandilya, RPI

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

Implementation Notes

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
  • Suitable tests have been added to the unittest tree.
  • A package specific README file has been included or updated
  • One or more example input decks are included

Further Information, Files, and Links

@abhiShandy
Copy link
Collaborator Author

abhiShandy commented Aug 10, 2020

@akohlmey I need your help in identifying the RESPA-related bug in these three pair-styles:

  • lj/charmm/coul/long/soft: RESPA bug
  • lj/cut/coul/long/soft: RESPA bug
  • lj/cut/soft: RESPA bug

It's not the initialization of cut_respa which is causing segmentation fault, it's something else.

@abhiShandy
Copy link
Collaborator Author

Found the bug in neighbor list

@abhiShandy abhiShandy marked this pull request as ready for review August 10, 2020 21:17
@sjplimp
Copy link
Contributor

sjplimp commented Aug 11, 2020

@abhiShandy @akohlmey Can you clarify what the rRESPA bug was in the 3 pair styles, you also mentioned a neighbor list bug (maybe the same thing). For lj/cut/soft it looks like you removed a bunch of rRESPA logic that presumably was copied from lj/cut? Are you saying that logic was incorrect, or is now outdated?

@akohlmey
Copy link
Member

akohlmey commented Aug 11, 2020

@abhiShandy @akohlmey Can you clarify what the rRESPA bug was in the 3 pair styles, you also mentioned a neighbor list bug (maybe the same thing). For lj/cut/soft it looks like you removed a bunch of rRESPA logic that presumably was copied from lj/cut? Are you saying that logic was incorrect, or is now outdated?

Looking at the git history shows that he respa neighborlist request logic in lj/cut was updated in 2017 in commit 0966e14, while the corresponding section in lj/cut/soft was unchanged since its addition in 2015. I suppose you forgot to update it, when you updated other pair styles.

@abhiShandy
Copy link
Collaborator Author

The stack-trace in failing tests hinted towards bug in neighbor list. So, I copied the neighbor logic from lj/cut to lj/cut/soft (and similarly for other 2) and it fixed the bug.

@akohlmey akohlmey merged commit 15cd007 into lammps:master Aug 11, 2020
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