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

Bug fixes... #427

Merged
merged 5 commits into from
Aug 21, 2017
Merged

Bug fixes... #427

merged 5 commits into from
Aug 21, 2017

Conversation

economon
Copy link
Member

for the incompressible discrete adjoint and python scripts, as well as new test cases for the incomp. primal and discrete adjoint.

* \param[in] val_Total_Custom_ObjFunc - Value of the total custom objective function.
* \param[in] val_weight - Value of the weight for the custom objective function.
*/
void SetTotal_Custom_ObjFunc(su2double val_total_custom_objfunc, su2double val_weight);
Copy link

Choose a reason for hiding this comment

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

Thanks for adding the Custom_ObjFunc to the incompressible solver

@@ -689,7 +689,7 @@ CEulerSolver::CEulerSolver(CGeometry *geometry, CConfig *config, unsigned short
Total_CFx = 0.0; Total_CFy = 0.0; Total_CFz = 0.0;
Total_CT = 0.0; Total_CQ = 0.0; Total_CMerit = 0.0;
Total_MaxHeat = 0.0; Total_Heat = 0.0; Total_ComboObj = 0.0;
Total_CpDiff = 0.0; Total_HeatFluxDiff = 0.0;
Total_CpDiff = 0.0; Total_HeatFluxDiff = 0.0; Total_Custom_ObjFunc=0.0;
Copy link

Choose a reason for hiding this comment

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

Good catch!


help="output QUIET to log files", metavar="QUIET")
parser.add_option("-z", "--zones", dest="nzones", default="1",
help="Number of Zones", metavar="ZONES")
Copy link

Choose a reason for hiding this comment

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

Why the number of zones is now an input of these scripts? I thought it was stored in the mesh information.

Copy link
Member

Choose a reason for hiding this comment

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

We have this because the python scripts also need to know the number of zones in order to have to correct file names.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks a lot for fixing theses issues.

Nothing to add, the code should be fixed as soon as possible and I'll accept the changes.

Best,
Francisco

@talbring
Copy link
Member

Thanks for fixing this. We can merge this in right away.

@economon
Copy link
Member Author

Thanks for the quick reviews. Merging now.

@economon economon merged commit d07e72e into develop Aug 21, 2017
@economon economon deleted the fix_bugs branch August 21, 2017 02:28
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.

3 participants