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

Kinetic energy computed incorrectly #10

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

Kinetic energy computed incorrectly #10

austinschneider opened this issue Oct 15, 2024 · 0 comments

Comments

@austinschneider
Copy link

It seems that the kinetic energy is computed incorrectly in the Particle class.
Thankfully this does not appear to be used anywhere in the library, and only seems to be referenced in one of the examples and the marsum executable.

marley/src/Particle.cc

Lines 99 to 101 in 9889611

double marley::Particle::kinetic_energy() const {
return std::max(four_momentum_[0] - mass_, 0.);
}

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