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

Conversation

auzbaig
Copy link
Member

@auzbaig auzbaig commented Mar 23, 2020

small change to fix support for SST model.

@pcarruscag I think you inadvertently added an else-if during your formatting corrections. I intentionally did not use an else-if as it will support both SA and SST models.

Thanks.

@auzbaig
Copy link
Member Author

auzbaig commented Mar 23, 2020

@pcarruscag and thanks alot for doing the formatting corrections on my behalf.

Comment on lines 149 to 151
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];
}

Copy link
Member

@talbring talbring left a comment

Choose a reason for hiding this comment

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

Thanks LGTM!

@auzbaig auzbaig merged commit 94f9228 into develop Mar 25, 2020
@auzbaig auzbaig deleted the C1DInterpolation-hotfix branch March 25, 2020 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants