Skip to content

Commit

Permalink
Update SU2_CFD/src/solvers/CEulerSolver.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Gomes <[email protected]>
  • Loading branch information
bigfooted and pcarruscag authored Aug 27, 2024
1 parent a070ab3 commit 48077f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SU2_CFD/src/solvers/CEulerSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7080,7 +7080,7 @@ void CEulerSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container,
if (tkeNeeded) Energy += GetTke_Inf();

/*--- Primitive variables, using the derived quantities ---*/
Temperature = Pressure / ( Gas_Constant * Density);
const su2double Temperature = Pressure / ( Gas_Constant * Density);

Check notice

Code scanning / CodeQL

Declaration hides variable Note

Variable Temperature hides another variable of the same name (on
line 6870
).
V_inlet[0] = Temperature;
for (iDim = 0; iDim < nDim; iDim++)
V_inlet[iDim+1] = Vel_Mag*Flow_Dir[iDim];
Expand Down

0 comments on commit 48077f0

Please sign in to comment.