Skip to content

Commit 6c714db

Browse files
committed
Improve error
1 parent 2d52709 commit 6c714db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/cell_lists/cell_lists.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ end
1313
function construct_backend(::Type{Vector{Vector{T}}},
1414
max_outer_length, max_inner_length;
1515
transpose_backend = false) where {T}
16-
transpose_backend && error("transpose backend not supported for Vector{Vector{T}}")
16+
transpose_backend && error("transpose backend is only supported for " *
17+
"DynamicVectorOfVectors backend")
1718

1819
return [T[] for _ in 1:max_outer_length]
1920
end

src/nhs_precomputed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ to strip the internal neighborhood search, which is not needed anymore.
4646
and GPU-compatible.
4747
- `max_neighbors`: Maximum number of neighbors per particle. This will be used to
4848
allocate the `DynamicVectorOfVectors`. It is not used with
49-
other backends. The default is 64 in 2D and 324 in 3D.
49+
other backends. The default is 64 in 2D and 320 in 3D.
5050
- `transpose_backend = false`: Whether to transpose the backend data structure storing the
5151
neighbor lists. This is only supported for the
5252
`DynamicVectorOfVectors` backend.

0 commit comments

Comments
 (0)