We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, we check the distance between interaction sites versus the cutoff.
let r = system.cell().distance(posi, posj); if r >= self.cutoff { 0.0 } else { // compute potential / force
We could test if using the squared distance and squared cutoff (an hence skipping calculation of the square root) impacts performance.
let r2 = system.cell().distance2(posi, posj); if r2 >= self.cutoff2 { 0.0 } else { // (compute distance) // compute potential / force
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, we check the distance between interaction sites versus the cutoff.
We could test if using the squared distance and squared cutoff (an hence skipping calculation of the square root) impacts performance.
The text was updated successfully, but these errors were encountered: