Once that the neighbor list have been initialized and updated, this function provide a logical array for atom i with all interactions that should be computed and corresponding distances.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ommp_neigh_list), | intent(in) | :: | nl |
Neigh list object |
||
integer(kind=ip), | intent(in) | :: | i |
Index of atom for which the neigbor list is required |
||
real(kind=rp), | intent(in) | :: | c(3,nl%n) |
Coordinates in input |
||
integer(kind=ip), | intent(out) | :: | neigh(nl%n) |
Integer array with neighbors' indexes. Only the first nn elements are valid |
||
real(kind=rp), | intent(out) | :: | dist(nl%n) |
Array for returning distances. Only the first nn elements are valid |
||
integer(kind=ip), | intent(out) | :: | nn |
Number of neighbors |