@@ -2394,7 +2394,7 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
23942394 unsigned short iMarker, iMarker_Monitoring, iDim, jDim;
23952395 unsigned short T_INDEX = 0 , TVE_INDEX = 0 , VEL_INDEX = 0 , RHOS_INDEX = 0 ;
23962396 su2double Viscosity = 0.0 , WallDist[3 ] = {0.0 }, Area, TauNormal, dTn, dTven,
2397- GradTemperature, Density = 0.0 , WallDistMod, FrictionVel,
2397+ Density = 0.0 , WallDistMod, FrictionVel,
23982398 UnitNormal[3 ] = {0.0 }, TauElem[3 ] = {0.0 }, TauTangent[3 ] = {0.0 }, Tau[3 ][3 ] = {{0.0 }}, Cp,
23992399 thermal_conductivity, MaxNorm = 8.0 , Grad_Vel[3 ][3 ] = {{0.0 }}, Grad_Temp[3 ] = {0.0 }, AxiFactor;
24002400 const su2double *Coord = nullptr , *Coord_Normal = nullptr , *Normal = nullptr ;
@@ -2558,14 +2558,14 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
25582558 if (!nemo){
25592559
25602560 if (FlowRegime == ENUM_REGIME::COMPRESSIBLE) {
2561- GradTemperature = -GeometryToolbox::DotProduct (nDim, Grad_Temp, UnitNormal);
2561+ su2double GradTemperature = -GeometryToolbox::DotProduct (nDim, Grad_Temp, UnitNormal);
25622562
25632563 Cp = (Gamma / Gamma_Minus_One) * Gas_Constant;
25642564 thermal_conductivity = Cp * Viscosity / Prandtl_Lam;
25652565 }
25662566 if (FlowRegime == ENUM_REGIME::INCOMPRESSIBLE) {
25672567 if (energy)
2568- GradTemperature = -GeometryToolbox::DotProduct (nDim, Grad_Temp, UnitNormal);
2568+ su2double GradTemperature = -GeometryToolbox::DotProduct (nDim, Grad_Temp, UnitNormal);
25692569
25702570 thermal_conductivity = nodes->GetThermalConductivity (iPoint);
25712571 }
0 commit comments