bmad-sim / AtomicAndPhysicalConstants.jl

Julia package for handling particle identification in simulations.
MIT License
0 stars 1 forks source link

massof and chargeof calculation speed #27

Open DavidSagan opened 4 months ago

DavidSagan commented 4 months ago

massof and chargeof functions use conversion factors current_units.charge.conversion and current_units.mass.conversion. This is potentially computationally slow. Better would be to have current_units.charge_conversion and current_units.mass_conversion which are can be defined to have definite types.