Skip to content

Commit c6fdc61

Browse files
committed
Changing initialization
Signed-off-by: jtneedels <jneedels@stanford.edu>
1 parent a1c7269 commit c6fdc61

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
Density = 0.0, WallDistMod, FrictionVel,
2397+
Density = 0.0, GradTemperature, 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;
@@ -2557,8 +2557,6 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
25572557
/// TODO: Move these ifs to specialized functions.
25582558
if (!nemo){
25592559

2560-
su2double GradTemperature;
2561-
25622560
if (FlowRegime == ENUM_REGIME::COMPRESSIBLE) {
25632561
GradTemperature = -GeometryToolbox::DotProduct(nDim, Grad_Temp, UnitNormal);
25642562

0 commit comments

Comments
 (0)