diff --git a/SU2_CFD/include/variables/CNEMOEulerVariable.hpp b/SU2_CFD/include/variables/CNEMOEulerVariable.hpp index 4f453b0e28c..e803eb9b4a4 100644 --- a/SU2_CFD/include/variables/CNEMOEulerVariable.hpp +++ b/SU2_CFD/include/variables/CNEMOEulerVariable.hpp @@ -81,7 +81,7 @@ class CNEMOEulerVariable : public CVariable { LAM_VISC_INDEX, EDDY_VISC_INDEX, nSpecies; su2double Tve_Freestream; /*!< \brief Freestream vib-el temperature. */ - bool implicit; + const bool implicit; /*!< \brief Implicit flag. */ public: diff --git a/SU2_CFD/src/variables/CNEMOEulerVariable.cpp b/SU2_CFD/src/variables/CNEMOEulerVariable.cpp index 19525008e2b..4f0657c4777 100644 --- a/SU2_CFD/src/variables/CNEMOEulerVariable.cpp +++ b/SU2_CFD/src/variables/CNEMOEulerVariable.cpp @@ -43,12 +43,10 @@ CNEMOEulerVariable::CNEMOEulerVariable(su2double val_pressure, ndim, nvar, config ), - Gradient_Reconstruction(config->GetReconstructionGradientRequired() ? Gradient_Aux : Gradient_Primitive) { + Gradient_Reconstruction(config->GetReconstructionGradientRequired() ? Gradient_Aux : Gradient_Primitive), + implicit(config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT) { unsigned short iDim, iSpecies; - - /*--- Setting flags ---*/ - implicit = (config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT); /*--- Setting variable amounts ---*/ nDim = ndim;