Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mass, charge, etc type unstable #90

Open
mattsignorelli opened this issue Oct 15, 2024 · 0 comments
Open

mass, charge, etc type unstable #90

mattsignorelli opened this issue Oct 15, 2024 · 0 comments

Comments

@mattsignorelli
Copy link
Contributor

mattsignorelli commented Oct 15, 2024

These functions need to be type stable

julia> setunits(PARTICLE_PHYSICS);
mass unit:      eV c^-2
length unit:    m
time unit:      s
energy unit:    eV
charge unit:    e

julia> e = Species("electron")
Species("electron", -1, 510998.95069, 0.5, -9.2847646917e-24, 0)

julia> using JET; @report_opt charge(e)
═════ 73 possible errors found ═════
julia> @report_opt mass(e)
═════ 73 possible errors found ═════
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant