Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This relates to issue #10 . The pair and neighborlist classes now also return the index of the pairs. This information was available, just not returned during the calculate function (as it wasn't necessary for initial testing/dev of a monatomic system).
Note: I tried a version of the pairlist that basically just removed non-interacting pairs to reduce the number of atoms used in the force calculation (current code will have all possible pairs, and the energy is just multiplied by either 0 or 1, i.e., based on the mask). Similar to the neighborlist, there was a n_max_neighbors variable that would pad things out. For the range of system sizes tested these extra steps took more time than extra LJ computations. I suspect for an NNP, this step to reduce extra interactions will likely speed things up given the cost of the NNP. This will be added in a follow-up commit to this PR; if it is ultimately not useful we can remove later. I'm not sure if this should be a new class or just part of the same class
Todos
Notable points that this PR has either accomplished or will accomplish.
Will move the other action items to a separate PR as they are not actually necessary here and not merging will potential block progress in other items.
Status