Skip to content

Commit 210fefc

Browse files
committed
Fix compiling errors
1 parent e208415 commit 210fefc

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

SU2_CFD/src/solvers/CNEMOEulerSolver.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,15 @@ CNEMOEulerSolver::CNEMOEulerSolver(CGeometry *geometry, CConfig *config,
4848

4949
const auto nZone = geometry->GetnZone();
5050
const bool restart = (config->GetRestart() || config->GetRestart_Flow());
51-
const bool rans = (config->GetKind_Turb_Model() != NONE);
5251
const auto direct_diff = config->GetDirectDiff();
5352
const bool dual_time = (config->GetTime_Marching() == TIME_MARCHING::DT_STEPPING_1ST) ||
5453
(config->GetTime_Marching() == TIME_MARCHING::DT_STEPPING_2ND);
5554
const bool time_stepping = (config->GetTime_Marching() == TIME_MARCHING::TIME_STEPPING);
5655
const bool adjoint = config->GetContinuous_Adjoint() || config->GetDiscrete_Adjoint();
5756

5857
int Unst_RestartIter = 0;
59-
unsigned long iPoint, counter_local = 0, counter_global = 0;
60-
unsigned short iDim, iMarker, iSpecies, nLineLets;
61-
su2double *Mvec_Inf, Alpha, Beta, Soundspeed_Inf, sqvel;
58+
unsigned short iMarker, nLineLets;
59+
su2double *Mvec_Inf, Alpha, Beta;
6260

6361
/*--- A grid is defined as dynamic if there's rigid grid movement or grid deformation AND the problem is time domain ---*/
6462
dynamic_grid = config->GetDynamic_Grid();

SU2_CFD/src/solvers/CNEMONSSolver.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,6 @@ void CNEMONSSolver::BC_HeatFluxNonCatalytic_Wall(CGeometry *geometry,
299299
const auto Normal = geometry->vertex[val_marker][iVertex]->GetNormal();
300300
su2double Area = GeometryToolbox::Norm(nDim, Normal);
301301

302-
su2double UnitNormal[MAXNDIM] = {0.0};
303-
for (auto iDim = 0u; iDim < nDim; iDim++)
304-
UnitNormal[iDim] = -Normal[iDim]/Area;
305-
306302
/*--- Initialize the convective & viscous residuals to zero ---*/
307303
for (auto iVar = 0u; iVar < nVar; iVar++) {Res_Visc[iVar] = 0.0;}
308304

@@ -433,7 +429,7 @@ void CNEMONSSolver::BC_HeatFluxCatalytic_Wall(CGeometry *geometry,
433429
su2double rho, Ys;
434430
su2double *Normal, Area;
435431
su2double *Ds, *V, *dYdn, SdYdn;
436-
su2double **GradV, **GradY;
432+
su2double **GradY;
437433

438434
/*--- Assign booleans ---*/
439435
implicit = (config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT);
@@ -620,8 +616,6 @@ void CNEMONSSolver::BC_IsothermalNonCatalytic_Wall(CGeometry *geometry,
620616
unsigned short val_marker) {
621617

622618
const bool implicit = (config->GetKind_TimeIntScheme() == EULER_IMPLICIT);
623-
const su2double Temperature_Ref = config->GetTemperature_Ref();
624-
const su2double Prandtl_Lam = config->GetPrandtl_Lam();
625619
const su2double Prandtl_Turb = config->GetPrandtl_Turb();
626620
const bool ionization = config->GetIonization();
627621

@@ -661,10 +655,6 @@ void CNEMONSSolver::BC_IsothermalNonCatalytic_Wall(CGeometry *geometry,
661655
const auto Normal = geometry->vertex[val_marker][iVertex]->GetNormal();
662656
su2double Area = GeometryToolbox::Norm(nDim, Normal);
663657

664-
su2double UnitNormal[MAXNDIM] = {0.0};
665-
for (auto iDim = 0u; iDim < nDim; iDim++)
666-
UnitNormal[iDim] = -Normal[iDim]/Area;
667-
668658
/*--- Compute closest normal neighbor ---*/
669659
const auto Point_Normal = geometry->vertex[val_marker][iVertex]->GetNormal_Neighbor();
670660

0 commit comments

Comments
 (0)