Skip to content

Commit

Permalink
disambiguate locals
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Apr 11, 2023
1 parent 45f7ee9 commit ba6e71c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CellOperations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ end
]
#! format: on
for _ in 1:5
local R
R = random_rotation()
mr = R * m
ma, Ra = align_cell(mr)
Expand Down
2 changes: 2 additions & 0 deletions src/neighborlists.jl
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ end

unitcell=[1.0,1.0]
for x in [nextfloat(0.1),prevfloat(0.9)]
local l, nl, lr
l = [[0.0,0.0],[x,0.0]]
nl = neighborlist(l, 0.1; unitcell=unitcell)
@test length(nl) == 0
Expand All @@ -652,6 +653,7 @@ end
@test length(nl) == 0
end
for x in [-0.1,0.1,0.9]
local l, nl, lr
l = [[0.0,0.0],[x,0.0]]
nl = neighborlist(l, 0.1; unitcell=unitcell)
@test length(nl) == 1
Expand Down

0 comments on commit ba6e71c

Please sign in to comment.