Fix for shear sims in pbc_points
This commit is contained in:
parent
3f4f155976
commit
2125c4de47
@ -254,7 +254,7 @@ def pbc_points(coordinates, box, thickness=0, index=False, shear=False):
|
||||
box[2, 0] = box[2, 0] % box[2, 2]
|
||||
# Shifts the box images in the other directions if they moved more than
|
||||
# half the box length
|
||||
if box[2, 0] > box[2, 2]:
|
||||
if box[2, 0] > box[2, 2] / 2:
|
||||
box[2, 0] = box[2, 0] - box[2, 2]
|
||||
|
||||
grid = np.array(
|
||||
|
Loading…
Reference in New Issue
Block a user