Skip to content

Commit 7ce370c

Browse files
committed
Fix formatting.
1 parent 8036f47 commit 7ce370c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/nhs_grid.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,13 @@ function update_grid!(neighborhood_search::GridNeighborhoodSearch{<:Any,
397397
# We can work around this by using the old lengths.
398398
# TODO this is hardcoded for the `FullGridCellList`
399399
@threaded parallelization_backend for i in eachindex(update_buffer,
400-
cell_list.cells.lengths)
400+
cell_list.cells.lengths)
401401
update_buffer[i] = cell_list.cells.lengths[i]
402402
end
403403

404404
# Add points to new cells
405-
@threaded parallelization_backend for cell_index in each_cell_index_threadable(cell_list)
405+
@threaded parallelization_backend for cell_index in
406+
each_cell_index_threadable(cell_list)
406407
for i in 1:update_buffer[cell_index]
407408
point = cell_list.cells.backend[i, cell_index]
408409
point_coords = extract_svector(y, Val(ndims(neighborhood_search)), point)
@@ -416,7 +417,8 @@ function update_grid!(neighborhood_search::GridNeighborhoodSearch{<:Any,
416417
end
417418

418419
# Remove points from old cells
419-
@threaded parallelization_backend for cell_index in each_cell_index_threadable(cell_list)
420+
@threaded parallelization_backend for cell_index in
421+
each_cell_index_threadable(cell_list)
420422
points = cell_list[cell_index]
421423

422424
# WARNING!!!

test/neighborhood_search.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,10 @@
132132

133133
seeds = [1, 2]
134134
name(size,
135-
seed) = "$(length(size))D with $(prod(size)) Particles " *
136-
"($(seed == 1 ? "`initialize!`" : "`update!`"))"
135+
seed) = "$(length(size))D with $(prod(size)) Particles " *
136+
"($(seed == 1 ? "`initialize!`" : "`update!`"))"
137137
@testset verbose=true "$(name(cloud_size, seed)))" for cloud_size in cloud_sizes,
138138
seed in seeds
139-
140139
coords = point_cloud(cloud_size, seed = seed)
141140
NDIMS = length(cloud_size)
142141
n_points = size(coords, 2)

test/nhs_grid.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@
190190
173, 178, 179, 180, 213, 214, 215, 220, 221, 222, 227, 228, 229]
191191

192192
update_strategies = (SerialUpdate(), ParallelUpdate())
193-
@testset verbose=true "eachindex_y $update_strategy" for update_strategy in update_strategies
193+
@testset verbose=true "eachindex_y $update_strategy" for update_strategy in
194+
update_strategies
194195
# Test that `eachindex_y` is passed correctly to the neighborhood search.
195196
# This requires `SerialUpdate` or `ParallelUpdate`.
196197
min_corner = min.(minimum(coordinates1, dims = 2),

0 commit comments

Comments
 (0)