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

Avoid repeated sorting of plasma particles #62

Merged
merged 1 commit into from
Oct 26, 2021
Merged

Conversation

AngelFP
Copy link
Owner

@AngelFP AngelFP commented Oct 26, 2021

The plasma particles were being sorted twice in the same step, leading to an unnecessary slow down of the wakefield calculation. This was because the sorting was performed within different functions which are called in the same iteration. Now, the sorting is performed only once, and the sorted indices given to the corresponding functions. This results in a speedup of up to ~10% to ~20%.

@AngelFP AngelFP merged commit ee31f4b into dev Oct 26, 2021
@AngelFP AngelFP deleted the bug/improve-sorting branch October 26, 2021 19:12
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

Successfully merging this pull request may close these issues.

1 participant