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

Add verbosity flag for diagnostic output print statements #5503

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

roelof-groenewald
Copy link
Member

This PR passes the warpx.verbose value to diagnostics to set whether a message is output when the diagnostic is active. Specifically, this helps with the time-averaged diagnostic where currently a message is print at every step that averaging is done (commonly every step).

@roelof-groenewald roelof-groenewald added the component: diagnostics all types of outputs label Dec 8, 2024
@roelof-groenewald
Copy link
Member Author

@n01r and @RevathiJambunathan the time-averaged diagnostic is super nice! Thanks for implementing that!
One thing though is that it prints out a message to the stdout at every step in the way I'm using it which makes it hard to see anything else in the output. This PR updates the diagnostics to only print messages to stdout if the verbosity flag is set to a non-zero value.

Copy link
Member

@n01r n01r left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks, @roelof-groenewald!
Happy you like the new diags!

@EZoni EZoni merged commit 540268f into ECP-WarpX:development Dec 11, 2024
37 checks passed
@roelof-groenewald roelof-groenewald deleted the diag_verbosity branch December 11, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: diagnostics all types of outputs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants