Closed kay-ro closed 1 week ago
The calculation of the distance while considering periodic boundaries, is incorrect.
a=np.array([[196.975,138.612, 0.], [196.409, 137.663, 0.]]) b=np.array([196.69200403, 138.13750941, 0. ]) box_boundary=np.array([[ 0., 223.6], [ 0., 223.6], [ -0.5, 0.5]]) print(amep.pbc.pbc_diff_rect(a,b,box_boundary))
[[ 0.28299597 0.47449059 0. ] [223.31699597 223.12549059 0. ]]
the distance should be very small instead of almost the whole box size.
1.0.3
No response
from source
Description:
The calculation of the distance while considering periodic boundaries, is incorrect.
Code for reproduction:
Error message:
the distance should be very small instead of almost the whole box size.
Python and AMEP versions:
1.0.3
Additional information:
No response
How did you install AMEP?
from source