Skip to content

Commit 37ac145

Browse files
committed
Eliminate unused variables, move initalization of temperature variables up to eliminate compiler warnings
Signed-off-by: jtneedels <jneedels@stanford.edu>
1 parent 2f91c39 commit 37ac145

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

SU2_CFD/src/numerics/NEMO/NEMO_sources.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,7 @@ CNumerics::ResidualType<> CSource_NEMO::ComputeAxisymmetric(const CConfig *confi
297297

298298
unsigned short iDim, iSpecies, iVar;
299299
su2double rho, rhov, vel2, H, yinv, T, Tve, qy_ve, Ru, RuSI;
300-
su2double *V, *Ds, **GV, mu, ktr, kve, div_vel;
301-
302-
auto& Ms = fluidmodel->GetSpeciesMolarMass();
303-
304-
bool viscous = config->GetViscous();
305-
bool rans = (config->GetKind_Turb_Model() != NONE);
306-
hs = fluidmodel->ComputeSpeciesEnthalpy(T, Tve, eve_i);
300+
su2double *Ds, **GV, ktr, kve;
307301

308302
Ds = Diffusion_Coeff_i;
309303
ktr = Thermal_Conductivity_i;
@@ -315,6 +309,12 @@ CNumerics::ResidualType<> CSource_NEMO::ComputeAxisymmetric(const CConfig *confi
315309
RuSI= UNIVERSAL_GAS_CONSTANT;
316310
Ru = 1000.0*RuSI;
317311

312+
auto& Ms = fluidmodel->GetSpeciesMolarMass();
313+
314+
bool viscous = config->GetViscous();
315+
bool rans = (config->GetKind_Turb_Model() != NONE);
316+
hs = fluidmodel->ComputeSpeciesEnthalpy(T, Tve, eve_i);
317+
318318
/*--- Initialize residual and Jacobian arrays ---*/
319319
for (iVar = 0; iVar < nVar; iVar++) {
320320
residual[iVar] = 0.0;

0 commit comments

Comments
 (0)