@@ -434,7 +434,7 @@ function find_too_close_particles(coords, min_distance)
434434 return result
435435end
436436
437- function move_particles_to_end! (ic:: InitialCondition , particle_ids_to_move:: Vector )
437+ function move_particles_to_end! (ic:: InitialCondition , particle_ids_to_move)
438438 invalid_id = findfirst (i -> i <= 0 || i > nparticles (ic), particle_ids_to_move)
439439 isnothing (invalid_id) || throw (BoundsError (ic, invalid_id))
440440
@@ -451,7 +451,7 @@ function move_particles_to_end!(ic::InitialCondition, particle_ids_to_move::Vect
451451 return ic
452452end
453453
454- function move_particles_to_end! (a:: AbstractVector , particle_ids_to_move:: Vector )
454+ function move_particles_to_end! (a:: AbstractVector , particle_ids_to_move)
455455 invalid_id = findfirst (i -> i <= 0 || i > length (a), particle_ids_to_move)
456456 isnothing (invalid_id) || throw (BoundsError (a, invalid_id))
457457
@@ -464,7 +464,7 @@ function move_particles_to_end!(a::AbstractVector, particle_ids_to_move::Vector)
464464 return a
465465end
466466
467- move_particles_to_end! (a:: Real , particle_ids_to_move:: Vector ) = a
467+ move_particles_to_end! (a:: Real , particle_ids_to_move) = a
468468
469469function center_of_mass_from_mass (coordinates, mass, :: Val{NDIMS} , ELTYPE) where {NDIMS}
470470 weighted_center_of_mass = zero (SVector{NDIMS, ELTYPE})
0 commit comments