Skip to content

Commit 7fa7e3c

Browse files
committed
fix new warnings around the code
1 parent 834a923 commit 7fa7e3c

8 files changed

Lines changed: 82 additions & 85 deletions

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,15 +1963,15 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
19631963

19641964
unsigned long iVertex, iPoint, iPointNormal;
19651965
unsigned short iMarker, iMarker_Monitoring, iDim, jDim;
1966-
unsigned short T_INDEX, TVE_INDEX, VEL_INDEX;
1966+
unsigned short T_INDEX = 0, TVE_INDEX = 0, VEL_INDEX = 0;
19671967
su2double Viscosity = 0.0, div_vel, WallDist[3] = {0.0}, Area, WallShearStress, TauNormal, RefTemp, RefVel2 = 0.0,
19681968
RefDensity = 0.0, GradTemperature, Density = 0.0, WallDistMod, FrictionVel, Mach2Vel, Mach_Motion,
19691969
UnitNormal[3] = {0.0}, TauElem[3] = {0.0}, TauTangent[3] = {0.0}, Tau[3][3] = {{0.0}}, Cp,
1970-
thermal_conductivity, thermal_conductivity_tr, thermal_conductivity_ve,
1970+
thermal_conductivity, thermal_conductivity_tr, thermal_conductivity_ve = 0.0,
19711971
MaxNorm = 8.0, Grad_Vel[3][3] = {{0.0}}, Grad_Temp[3] = {0.0}, AxiFactor,
19721972
delta[3][3] = {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}};
19731973
const su2double *Coord = nullptr, *Coord_Normal = nullptr, *Normal = nullptr;
1974-
su2double **Grad_PrimVar, dTn, dTven;
1974+
su2double **Grad_PrimVar = nullptr, dTn, dTven;
19751975

19761976
string Marker_Tag, Monitoring_Tag;
19771977

SU2_CFD/include/solvers/CNEMOEulerSolver.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#pragma once
2929

3030
#include "../variables/CNEMOEulerVariable.hpp"
31-
#include "../include/fluid/CNEMOGas.hpp"
31+
#include "../fluid/CNEMOGas.hpp"
3232
#include "CFVMFlowSolverBase.hpp"
3333

3434
/*!
@@ -43,8 +43,8 @@ class CNEMOEulerSolver : public CFVMFlowSolverBase<CNEMOEulerVariable, COMPRESSI
4343

4444
unsigned short
4545
nSpecies; /*!< \brief Number of species in the gas mixture. */
46-
47-
su2double
46+
47+
su2double
4848
Energy_ve_Inf, /*!< \brief Vib.-el. free stream energy. */
4949
Temperature_ve_Inf; /*!< \brief Vib.-el. free stream temperature. */
5050
const su2double *MassFrac_Inf; /*!< \brief Free stream species mass fraction. */
@@ -83,7 +83,7 @@ class CNEMOEulerSolver : public CFVMFlowSolverBase<CNEMOEulerVariable, COMPRESSI
8383
* \param[in] config - Definition of the particular problem.
8484
*/
8585
void SetMax_Eigenvalue(CGeometry *geometry, CConfig *config);
86-
86+
8787
/*!
8888
* \brief Compute the time step for solving the Euler equations.
8989
* \param[in] geometry - Geometrical definition of the problem.
@@ -176,7 +176,7 @@ class CNEMOEulerSolver : public CFVMFlowSolverBase<CNEMOEulerVariable, COMPRESSI
176176
* \return - The number of non-physical points.
177177
*/
178178
unsigned long SetPrimitive_Variables(CSolver **solver_container,
179-
bool Output);
179+
bool Output);
180180

181181
/*!
182182
* \brief Compute the preconditioner for convergence acceleration by Roe-Turkel method.

SU2_CFD/include/variables/CVariable.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
#include <cstdlib>
3737

3838
#include "../../../Common/include/CConfig.hpp"
39-
#include "../fluid/CFluidModel.hpp"
40-
#include "../fluid/CNEMOGas.hpp"
4139
#include "../../../Common/include/toolboxes/C2DContainer.hpp"
4240

41+
class CFluidModel;
42+
class CNEMOGas;
4343

4444
using namespace std;
4545

0 commit comments

Comments
 (0)