Open chrhck opened 11 months ago
Currently all numeric fields for Particle have to be of same type in the constructor. Add a convenience constructor that uses T = promote_type(args..) on all numerics arguments to create a Particle{T}
T = promote_type(args..)
Particle{T}
For reference: https://docs.julialang.org/en/v1/manual/conversion-and-promotion/
Currently all numeric fields for Particle have to be of same type in the constructor. Add a convenience constructor that uses
T = promote_type(args..)
on all numerics arguments to create aParticle{T}