337337
338338 # `each_cell_index(cell_list)` might return a `KeySet`, which has to be `collect`ed
339339 # first to be able to be used in a threaded loop. This function takes care of that.
340- @threaded parallelization_backend for cell_index in each_cell_index_threadable (cell_list)
340+ @threaded parallelization_backend for cell_index in
341+ each_cell_index_threadable (cell_list)
341342 mark_changed_cell! (neighborhood_search, cell_index, y)
342343 end
343344end
@@ -391,12 +392,13 @@ function update_grid!(neighborhood_search::GridNeighborhoodSearch{<:Any,
391392 # We can work around this by using the old lengths.
392393 # TODO this is hardcoded for the `FullGridCellList`
393394 @threaded parallelization_backend for i in eachindex (update_buffer,
394- cell_list. cells. lengths)
395+ cell_list. cells. lengths)
395396 update_buffer[i] = cell_list. cells. lengths[i]
396397 end
397398
398399 # Add points to new cells
399- @threaded parallelization_backend for cell_index in each_cell_index_threadable (cell_list)
400+ @threaded parallelization_backend for cell_index in
401+ each_cell_index_threadable (cell_list)
400402 for i in 1 : update_buffer[cell_index]
401403 point = cell_list. cells. backend[i, cell_index]
402404 point_coords = extract_svector (y, Val (ndims (neighborhood_search)), point)
@@ -410,7 +412,8 @@ function update_grid!(neighborhood_search::GridNeighborhoodSearch{<:Any,
410412 end
411413
412414 # Remove points from old cells
413- @threaded parallelization_backend for cell_index in each_cell_index_threadable (cell_list)
415+ @threaded parallelization_backend for cell_index in
416+ each_cell_index_threadable (cell_list)
414417 points = cell_list[cell_index]
415418
416419 # WARNING!!!
465468 pos_diff = point_coords - neighbor_coords
466469 distance2 = dot (pos_diff, pos_diff)
467470
468- pos_diff, distance2 = compute_periodic_distance (pos_diff, distance2,
469- search_radius, periodic_box)
471+ pos_diff,
472+ distance2 = compute_periodic_distance (pos_diff, distance2,
473+ search_radius, periodic_box)
470474
471475 if distance2 <= search_radius^ 2
472476 distance = sqrt (distance2)
0 commit comments