From 5e9af2439e87244948bbab821d1a838ea7a4b578 Mon Sep 17 00:00:00 2001 From: Aman uz zaman Baig <46273732+auzbaig@users.noreply.github.com> Date: Mon, 23 Mar 2020 11:06:27 -0400 Subject: [PATCH 1/2] fixing for support for SST model --- Common/src/toolboxes/C1DInterpolation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/toolboxes/C1DInterpolation.cpp b/Common/src/toolboxes/C1DInterpolation.cpp index 58f410d3766..3f15449d6b7 100644 --- a/Common/src/toolboxes/C1DInterpolation.cpp +++ b/Common/src/toolboxes/C1DInterpolation.cpp @@ -148,7 +148,7 @@ vector CorrectedInletValues(const vector &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) Inlet_Values[nDim+6] = Inlet_Interpolated[6]; /*--- Correct for Interpolation Type now ---*/ From b7dba237efd5caa5d047a959dba21a99f44e64c6 Mon Sep 17 00:00:00 2001 From: Aman uz zaman Baig <46273732+auzbaig@users.noreply.github.com> Date: Mon, 23 Mar 2020 11:57:01 -0400 Subject: [PATCH 2/2] changes for nVar_Turb --- Common/src/toolboxes/C1DInterpolation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/src/toolboxes/C1DInterpolation.cpp b/Common/src/toolboxes/C1DInterpolation.cpp index 3f15449d6b7..b2a31342e27 100644 --- a/Common/src/toolboxes/C1DInterpolation.cpp +++ b/Common/src/toolboxes/C1DInterpolation.cpp @@ -148,8 +148,10 @@ vector CorrectedInletValues(const vector &Inlet_Interpolat /*---For turbulence variables columns---*/ if (nVar_Turb == 1) Inlet_Values[nDim+5] = Inlet_Interpolated[5]; - if (nVar_Turb == 2) + else if (nVar_Turb == 2){ + Inlet_Values[nDim+5] = Inlet_Interpolated[5]; Inlet_Values[nDim+6] = Inlet_Interpolated[6]; + } /*--- Correct for Interpolation Type now ---*/ switch(Interpolation_Type){