Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AngelFP
Copy link
Collaborator

@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
@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.

2 participants