Skip to content

Commit

Permalink
move sph test to pathological coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Feb 8, 2024
1 parent d6b5cb2 commit 10b0382
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/CoreComputing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,4 @@ function inner_loop!(
return output
end

@testitem "sphtest" begin
using StaticArrays: SVector
using CellListMap: neighborlist
p2d = SVector{2, Float64}[[0.0, 2.52], [0.02, 2.56], [3.98, 2.96], [4.0, 0.26], [4.0, 2.5]]
r = 0.06788225099390856
@test length(neighborlist(p2d, r)) == 1
end

8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,14 @@ end
@test d0 d1
end
end

# sph test (https://github.com/m3g/CellListMap.jl/issues/95)
using StaticArrays: SVector
using CellListMap: neighborlist
p2d = SVector{2, Float64}[[0.0, 2.52], [0.02, 2.56], [3.98, 2.96], [4.0, 0.26], [4.0, 2.5]]
r = 0.06788225099390856
@test length(neighborlist(p2d, r)) == 1

end

include("$(@__DIR__)/namd/compare_with_namd.jl")
Expand Down

0 comments on commit 10b0382

Please sign in to comment.