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

fixing for support for SST model in C1Dinterpolation #916

Merged
merged 2 commits into from
Mar 25, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Common/src/toolboxes/C1DInterpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ vector<su2double> CorrectedInletValues(const vector<su2double> &Inlet_Interpolat
/*---For turbulence variables columns---*/
if (nVar_Turb == 1)
Inlet_Values[nDim+5] = Inlet_Interpolated[5];
else if (nVar_Turb == 2)
if (nVar_Turb == 2)
Copy link
Member

Choose a reason for hiding this comment

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

It was not by accident, nVar_Turb cannot be both 1 and 2, only one of those branches executes, if your intention is to execute both branches when nVar_Turb is 2, the code is wrong.

Copy link
Member Author

Choose a reason for hiding this comment

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

@pcarruscag Thanks for the correction. I have changed the code, correctly with the else-if.

else if (nVar_Turb == 2){
Inlet_Values[nDim+5] = Inlet_Interpolated[5];
Inlet_Values[nDim+6] = Inlet_Interpolated[6];
}

Inlet_Values[nDim+6] = Inlet_Interpolated[6];

/*--- Correct for Interpolation Type now ---*/
Expand Down