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

Push bunches before saving to diagnostics #149

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Conversation

AngelFP
Copy link
Owner

@AngelFP AngelFP commented Apr 30, 2024

This PR adds a new option (set to True by default) to push the bunches before saving them to the diagnostics.

Since the time step of the diagnostics can be different from that of the bunches, it could happen that the bunches appear in the diagnostics as they were at the last push, but not at the actual time of the diagnostics. Setting this parameter to True (default) ensures that an additional push is given to all bunches to evolve them to the diagnostics time before saving. This additional push will always have a time step smaller than the the time step of the bunch, so it has no detrimental impact on the accuracy of the simulation. However, it could make convergence studies more difficult to interpret, since the number of pushes will depend on n_diags. Therefore, it is exposed as an option so that it can be disabled if needed.

@AngelFP AngelFP merged commit c75ce37 into dev Apr 30, 2024
6 checks passed
@AngelFP AngelFP deleted the feature/push_before_diags branch April 30, 2024 14:27
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