Skip to content

Commit

Permalink
fix wrong use of dot in normscale!
Browse files Browse the repository at this point in the history
- cc. @AliGhorashiCMT
- bump to v0.4.17
  • Loading branch information
thchr committed Mar 28, 2022
1 parent b160a93 commit d059c78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Crystalline"
uuid = "ae5e2be0-a263-11e9-351e-f94dad1eb351"
authors = ["Thomas Christensen <[email protected]>"]
version = "0.4.16"
version = "0.4.17"

[deps]
Bravais = "ada6cbde-b013-4edf-aa94-f6abe8bd6e6b"
Expand Down
2 changes: 1 addition & 1 deletion src/lattices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function normscale!(flat::ModulatedFourierLattice{D}, expon::Real,
n = if isnothing(Gs)
norm(first(orbits[i]))
else
norm(dot(Gs, first(orbits[i]))) / n₀
norm(first(orbits[i])'*Gs) / n₀
end
rescale_factor = n^expon
rescale_factor == zero(rescale_factor) && continue # for G = [0,0,0] case
Expand Down

2 comments on commit d059c78

@thchr
Copy link
Owner Author

@thchr thchr commented on d059c78 Mar 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/57484

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.17 -m "<description of version>" d059c785015d9fd61878bbc419a9a498a61491bc
git push origin v0.4.17

Please sign in to comment.