Skip to content

Commit 6d07913

Browse files
Update SU2_CFD/src/solvers/CNSSolver.cpp
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
1 parent 6743704 commit 6d07913

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SU2_CFD/src/solvers/CNSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ void CNSSolver::BC_HeatFlux_Wall_Generic(const CGeometry *geometry, const CConfi
537537
for (auto iVar = 0u; iVar < nVar; ++iVar)
538538
Jacobian_i[nDim+1][iVar] = 0.0;
539539

540-
const su2double Density = nodes->GetDensity(iPoint);
540+
const su2double oneOnRho = 1.0 / nodes->GetDensity(iPoint);
541541
const su2double oneOnCv = (Gamma - 1.0) / config->GetGas_ConstantND();
542542
const su2double Vel2 = nodes->GetVelocity2(iPoint);
543543
const su2double dTdrho = oneOnRho * ( -Tinfinity + oneOnCv * 0.5 * Vel2);

0 commit comments

Comments
 (0)