Skip to content

warning: loc idx out of lower bound #21

Answered by amcadmus
Jimbo994 asked this question in Q&A
Discussion options

You must be logged in to vote

deepmd-kit assumes the origin of the simulation box is (0, 0, 0). For a cubic box, it is [0, L] x [0, L] x [0, L]. Of course, the box is not restricted to cubic and can be triclinic.

If the positions of atoms are not in the simulation region, then the periodic boundary condition is applied and the atoms are wrapped back into the region by trying to +L or -L to the coordinates. However, this is tried only once, and if the atoms are too far away from the simulation region, the wrapping fails and the warning will be triggered.

It is recommended that when preparing the data, all the coordinates of atoms are corrected wrapped to the simulation box with the origin (0, 0, 0).

Please let me know …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by njzjz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #21 on December 24, 2020 15:33.