Skip to content

Commit 5e038c0

Browse files
removing unnecessary variables (#2600)
1 parent 33b9fe3 commit 5e038c0

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

SU2_CFD/include/numerics/flow/flow_diffusion.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,7 @@ class CAvgGradInc_Flow final : public CAvgGrad_Base {
349349
*/
350350
class CGeneralAvgGrad_Flow final : public CAvgGrad_Base {
351351
private:
352-
su2double Mean_SecVar[2], /*!< \brief Mean secondary variables. */
353-
Mean_Thermal_Conductivity, /*!< \brief Mean value of the thermal conductivity. */
354-
Mean_Cp; /*!< \brief Mean value of the Cp. */
352+
su2double Mean_SecVar[2]; /*!< \brief Mean secondary variables. */
355353

356354
/*!
357355
* \brief Compute the Jacobian of the heat flux vector

SU2_CFD/src/numerics/flow/flow_sources.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,9 @@ CNumerics::ResidualType<> CSourceGravity::ComputeResidual(const CConfig* config)
487487
return ResidualType<>(residual, jacobian, nullptr);
488488
}
489489

490-
CSourceRotatingFrame_Flow::CSourceRotatingFrame_Flow(unsigned short val_nDim, unsigned short val_nVar, const CConfig* config) :
491-
CSourceBase_Flow(val_nDim, val_nVar, config) {
492-
493-
Gamma = config->GetGamma();
494-
Gamma_Minus_One = Gamma - 1.0;
495-
496-
}
490+
CSourceRotatingFrame_Flow::CSourceRotatingFrame_Flow(unsigned short val_nDim, unsigned short val_nVar,
491+
const CConfig* config)
492+
: CSourceBase_Flow(val_nDim, val_nVar, config) {}
497493

498494
CNumerics::ResidualType<> CSourceRotatingFrame_Flow::ComputeResidual(const CConfig* config) {
499495

@@ -555,9 +551,6 @@ CSourceIncRotatingFrame_Flow::CSourceIncRotatingFrame_Flow(unsigned short val_nD
555551

556552
implicit = (config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT);
557553

558-
Gamma = config->GetGamma();
559-
Gamma_Minus_One = Gamma - 1.0;
560-
561554
/*--- Retrieve the angular velocity vector from config. ---*/
562555
for (unsigned short iDim = 0; iDim < 3; iDim++)
563556
Omega[iDim] = config->GetRotation_Rate(iDim)/config->GetOmega_Ref();
@@ -618,10 +611,7 @@ CNumerics::ResidualType<> CSourceIncRotatingFrame_Flow::ComputeResidual(const CC
618611

619612
CSourceVorticityConfinement::CSourceVorticityConfinement(unsigned short val_nDim, unsigned short val_nVar,
620613
const CConfig* config)
621-
: CSourceBase_Flow(val_nDim, val_nVar, config) {
622-
Gamma = config->GetGamma();
623-
Gamma_Minus_One = Gamma - 1.0;
624-
}
614+
: CSourceBase_Flow(val_nDim, val_nVar, config) {}
625615

626616
CNumerics::ResidualType<> CSourceVorticityConfinement::ComputeResidual(const CConfig* config) {
627617
/*--- density, \rho ---*/

0 commit comments

Comments
 (0)