Repository navigation
Add a command-line argument for output verbosity - #3680
Merged
Merged
Conversation
Member
Author
|
@aprilnovak FYI. |
nuclearkevin
force-pushed
the
verb_args
branch
from
December 11, 2025 18:28
535a9db to
c5699be
Compare
paulromano
enabled auto-merge (squash)
December 12, 2025 06:08
jon-proximafusion
pushed a commit
to shimwell/openmc
that referenced
this pull request
Apr 13, 2026
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
apingegno
pushed a commit
to apingegno/openmc
that referenced
this pull request
May 7, 2026
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a command line argument to set the verbosity of an OpenMC simulation:
-q/--verbosity. The bounds are error checked to ensure the result is a valid verbosity flag in [1, 10]. If a verbosity is specified, the value fromsettings.xml/model.xmlis overriden.I couldn't find any examples of places where the command line arguments are getting regression / unit tested. I'd be more then happy to add a test for this new argument if someone could point me to an example in OpenMC's regression suite!
Checklist
I have followed the style guidelines for Python source files (if applicable)I have added tests that prove my fix is effective or that my feature works (if applicable)