-
Notifications
You must be signed in to change notification settings - Fork 99
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
Added option to turn off negative volume print out #276
Conversation
Codecov Report
@@ Coverage Diff @@
## main #276 +/- ##
=======================================
Coverage 40.77% 40.77%
=======================================
Files 13 13
Lines 3882 3882
=======================================
Hits 1583 1583
Misses 2299 2299
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relatable, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. I suggest we make the default False
. Nobody reads this and gets any use out of it. The better way is to just visualize the negative volumes in tecplot.
Purpose
I added an option to turn off printing of the negative volume indices and coordinates. The printout is useful for debugging, but I find that it mainly pollutes the output during production runs.
Setting the option
printNegativeVolumes
to False will mean that messages like the following will not be printed:The
returnFail
error message will still be printed, so it is still clear that negative volumes have been encountered:Expected time until merged
1 week
Type of change
Testing
I tested it on a wing case with geometry changes that cause negative volumes, and the option behaves as expected.
Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable