Skip to content

Commit

Permalink
make test deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Apr 11, 2023
1 parent ba6e71c commit ee1447f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/neighborlists.jl
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,13 @@ end
using CellListMap
using Unitful
using StaticArrays
positions = rand(SVector{3,Float64}, 50)u"nm"

positions = [SVector(0.1, 0.0, 0.0), SVector(0.11, 0.01, 0.01) ]u"nm"
cutoff = 0.1u"nm"
nb = neighborlist(positions, cutoff)
@test unit(nb[1][3]) == u"nm"

# and boundary coordinates
# and with boundary coordinates (to test the fix for upper boundary shifts)
l = [SVector(0.0, 0.0)u"nm", SVector(-1, 0.0)u"nm"]
unitcell = [14.01, 14.02]u"nm"
nl = neighborlist(l, 7.0u"nm")
Expand Down

2 comments on commit ee1447f

@lmiq
Copy link
Member Author

@lmiq lmiq commented on ee1447f Apr 11, 2023

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/81413

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.8.16 -m "<description of version>" ee1447fbf87ca756b4d1db51746dffdefc175807
git push origin v0.8.16

Please sign in to comment.