Skip to content

Commit

Permalink
use .| instead of .||
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Jun 10, 2024
1 parent 26c0184 commit 35607d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lattice/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function generatelattice_std(param)
error("offset in source should be zero")
end
target_coord = cellcoord .+ bond.target.offset
if all((0 .<= target_coord .< L) .|| bc)
if all((0 .<= target_coord .< L) .| bc)
source = numsites_in_cell * cellcoord + bond.source.id
target = numsites_in_cell *
coord2index(cellcoord .+ bond.target.offset, L) + bond.target.id
Expand Down

0 comments on commit 35607d1

Please sign in to comment.