Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Jun 10, 2024
1 parent 35607d1 commit 5a01c83
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 @@ -124,7 +124,7 @@ function generatelattice_std(param)
end
target_coord = cellcoord .+ bond.target.offset
if all((0 .<= target_coord .< L) .| bc)
source = numsites_in_cell * cellcoord + bond.source.id
source = numsites_in_cell * coord2index(cellcoord, L) + bond.source.id
target = numsites_in_cell *
coord2index(cellcoord .+ bond.target.offset, L) + bond.target.id
dir = latvec * ((bond.target.offset .+ usites[bond.target.id].coord)
Expand Down

0 comments on commit 5a01c83

Please sign in to comment.