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

Print resampling message only if verbose is on #4264

Merged

Conversation

roelof-groenewald
Copy link
Member

This PR includes 2 changes to the message print to stdout during particle resampling:

  1. Only output the message about resampling if WarpX::verbose = true
  2. Include the time step at which resampling happens

In tests of #4125 I use resampling and in the current setup the frequent output of resampling messages obscures other run diagnostics I'm periodically printing.

Only use `const` qualification in function definitions, not in function declarations.
Copy link
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR, @roelof-groenewald !

@lucafedeli88 lucafedeli88 merged commit 0272129 into ECP-WarpX:development Sep 4, 2023
34 checks passed
@roelof-groenewald roelof-groenewald deleted the resampling_print branch September 4, 2023 20:31
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