@@ -101,9 +101,9 @@ struct GridNeighborhoodSearch{NDIMS, ELTYPE, PB}
101
101
threaded_nhs_update :: Bool
102
102
103
103
function GridNeighborhoodSearch {NDIMS} (search_radius, n_particles;
104
- periodic_box_min_corner= nothing ,
105
- periodic_box_max_corner= nothing ,
106
- threaded_nhs_update= true ) where {NDIMS}
104
+ periodic_box_min_corner = nothing ,
105
+ periodic_box_max_corner = nothing ,
106
+ threaded_nhs_update = true ) where {NDIMS}
107
107
ELTYPE = typeof (search_radius)
108
108
109
109
hashtable = Dict {NTuple{NDIMS, Int}, Vector{Int}} ()
@@ -385,8 +385,8 @@ function z_index_sort!(coordinates, system)
385
385
(; mass, pressure, neighborhood_search) = system
386
386
387
387
perm = sortperm (eachparticle (system),
388
- by= (i -> cell_z_index (extract_svector (coordinates, system, i),
389
- neighborhood_search)))
388
+ by = (i -> cell_z_index (extract_svector (coordinates, system, i),
389
+ neighborhood_search)))
390
390
391
391
permute! (mass, perm)
392
392
permute! (pressure, perm)
@@ -407,8 +407,8 @@ function copy_neighborhood_search(nhs::GridNeighborhoodSearch, search_radius, u)
407
407
search = GridNeighborhoodSearch {ndims(nhs)} (search_radius, nparticles (nhs))
408
408
else
409
409
search = GridNeighborhoodSearch {ndims(nhs)} (search_radius, nparticles (nhs),
410
- periodic_box_min_corner= nhs. periodic_box. min_corner,
411
- periodic_box_max_corner= nhs. periodic_box. max_corner)
410
+ periodic_box_min_corner = nhs. periodic_box. min_corner,
411
+ periodic_box_max_corner = nhs. periodic_box. max_corner)
412
412
end
413
413
414
414
# Initialize neighborhood search
0 commit comments