Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thchr committed Sep 26, 2024
1 parent e58d325 commit 4be873e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lattices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ function transform(flat::AbstractFourierLattice{D}, P::AbstractMatrix{<:Real}) w
for (j, k) in enumerate(orb)
k′ = P'*k
int_k′ = round.(Int, k′)
if !isapprox(k′, k, atol=DEFAULT_ATOL)
if !isapprox(k′, int_k′, atol=DEFAULT_ATOL)
error("unexpectedly obtained non-integer k-vector in orbit")
end
orbits′[i][j] = int_k′::SVector{D,Int}
orbits′[i][j] = int_k′ :: SVector{D,Int}
end
end
# --- Comment regarding the `convert(SVector{D, Int}, ...)` call above: ---
Expand Down

0 comments on commit 4be873e

Please sign in to comment.