-
Notifications
You must be signed in to change notification settings - Fork 841
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
Fix "per-surface" outputs #1341
Conversation
This pull request fixes 2 alerts when merging fa7f165 into f47e22b - view on LGTM.com fixed alerts:
|
void CFlowOutput::WriteForcesBreakdown(CConfig *config, CGeometry *geometry, CSolver **solver_container){ | ||
void CFlowOutput::WriteForcesBreakdown(const CConfig* config, const CSolver* flow_solver) const { |
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.
Most of that last commit was trying to make this function less ugly.
This pull request fixes 2 alerts when merging c43559e into f47e22b - view on LGTM.com fixed alerts:
|
This pull request fixes 2 alerts when merging 9577cba into f47e22b - view on LGTM.com fixed alerts:
|
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.
Well thanks for this fix(es) and massive cleanup 💐 Someone at some point will surely appreciate that tedious work!
Moreover, the "per surface" implementation is only considering the first marker name and value for printing.
However, there is one value added per "marker analyse".
Can you point me to where that went wrong real quick. I was not able to spot that while going over 😬
const bool si_units; | ||
const bool us_units; |
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.
brief please
} | ||
} | ||
(*convergenceTable) << out.str(); |
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.
We were re-using this string stream and that created the lumped values without separator.
case ScreenOutputFormat::FIXED: | ||
PrintingToolbox::PrintScreenFixed(out, field.value, fieldWidth); | ||
break; | ||
case ScreenOutputFormat::SCIENTIFIC: |
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.
I should have made this block a lambda or something for re-use, one day...
Fixes #1336