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

Optimize performance of create_atoms for large boxes and small regions #1279

Merged
merged 1 commit into from Jan 31, 2019

Conversation

akohlmey
Copy link
Member

@akohlmey akohlmey commented Jan 8, 2019

Purpose

Use a region's bounding box information (if available) to limit the grid points to evaluate for creating atoms. This should result in speedups when the box is much larger than the region.
Also add a heuristic warning in case create_atoms will take minutes or longer. Not very accurate, but order of magnitude should be sufficient.

Author(s)

Axel Kohlmeyer (Temple U)

Backward Compatibility

yes.

Implementation Notes

Inner loop speed is based on some empirical testing.

Post Submission Checklist

Please check the fields below as they are completed

  • The feature or features in this pull request is complete
  • The source code follows the LAMMPS formatting guidelines

Further Information, Files, and Links

Addresses the issue reported in this e-mail thread on lammps-users

@akohlmey akohlmey added this to the Stable Release Spring 2019 milestone Jan 8, 2019
@akohlmey akohlmey self-assigned this Jan 8, 2019
@akohlmey akohlmey requested a review from sjplimp January 8, 2019 19:51
Copy link
Contributor

@stanmoore1 stanmoore1 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@akohlmey akohlmey merged commit 06d5c1d into lammps:master Jan 31, 2019
@akohlmey akohlmey deleted the create-atoms-bounding-box branch February 1, 2019 12:36
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

2 participants