-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I'm opening this issue to perhaps provide some information concerning the discussion that we might have on Jul 7.
I've tested quickly here the computation of a nb list with NeighbourLists and CellListMap, and this is what I get:
julia> import CellListMap
julia> using NeighbourLists
julia> Threads.nthreads()
20
julia> x, box = CellListMap.xatomic(10^4); # sample coordinates with liquid water atomic density
julia> using Chairmarks
julia> @b PairList($x, $(box.cutoff), $(box.input_unit_cell.matrix), (true, true, true))
1.411 s (80186 allocs: 635.531 MiB, 1.21% gc time, without a warmup)
julia> @b CellListMap.neighborlist($x, $(box.cutoff); unitcell=$(box.input_unit_cell.matrix))
21.213 ms (6698 allocs: 236.658 MiB)Am I'm doing something wrong?
Here, we have:
julia> box.cutoff
12.0
julia> box.input_unit_cell.matrix
3×3 StaticArraysCore.SMatrix{3, 3, Float64, 9} with indices SOneTo(3)×SOneTo(3):
46.4159 0.0 0.0
0.0 46.4159 0.0
0.0 0.0 46.4159The coordinates of the example are random coordinates within that box, and the density is the atomic density of liquid water.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels