@@ -79,22 +79,6 @@ CScalarSolver<VariableType>::~CScalarSolver() {
7979
8080template <class VariableType >
8181void CScalarSolver<VariableType>::CommonPreprocessing(CGeometry *geometry, const CConfig *config, const bool Output) {
82- /* --- Set booleans depending on the calling solver, alternatively one could add the bools to the func input. ---*/
83- bool implicit = false ;
84- bool muscl = false ;
85- bool limiter = false ;
86- if (SolverName == " SA" || SolverName == " K-W SST" ) {
87- implicit = (config->GetKind_TimeIntScheme_Turb () == EULER_IMPLICIT);
88- muscl = config->GetMUSCL_Turb ();
89- limiter = (config->GetKind_SlopeLimit_Turb () != NO_LIMITER) &&
90- (config->GetInnerIter () <= config->GetLimiterIter ());
91- }
92- else if (SolverName == " SPECIES" ) {
93- implicit = (config->GetKind_TimeIntScheme_Species () == EULER_IMPLICIT);
94- muscl = config->GetMUSCL_Species ();
95- limiter = (config->GetKind_SlopeLimit_Species () != NO_LIMITER) &&
96- (config->GetInnerIter () <= config->GetLimiterIter ());
97- }
9882
9983 /* --- Clear residual and system matrix, not needed for
10084 * reducer strategy as we write over the entire matrix. ---*/
@@ -129,19 +113,6 @@ template <class VariableType>
129113void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver** solver_container,
130114 CNumerics** numerics_container, CConfig* config,
131115 unsigned short iMesh) {
132- const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
133-
134- bool muscl = false ;
135- bool limiter = false ;
136- if (SolverName == " SA" || SolverName == " K-W SST" ) {
137- muscl = config->GetMUSCL_Turb ();
138- limiter = (config->GetKind_SlopeLimit_Turb () != NO_LIMITER);
139- }
140- else if (SolverName == " SPECIES" ) {
141- muscl = config->GetMUSCL_Species ();
142- limiter = (config->GetKind_SlopeLimit_Species () != NO_LIMITER);
143- }
144-
145116 /* --- Only reconstruct flow variables if MUSCL is on for flow (requires upwind) and turbulence. ---*/
146117 const bool musclFlow = config->GetMUSCL_Flow () && muscl && (config->GetKind_ConvNumScheme_Flow () == SPACE_UPWIND);
147118 /* --- Only consider flow limiters for cell-based limiters, edge-based would need to be recomputed. ---*/
@@ -484,7 +455,6 @@ template <class VariableType>
484455void CScalarSolver<VariableType>::SetResidual_DualTime(CGeometry* geometry, CSolver** solver_container, CConfig* config,
485456 unsigned short iRKStep, unsigned short iMesh,
486457 unsigned short RunTime_EqSystem) {
487- const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
488458 const bool first_order = (config->GetTime_Marching () == TIME_MARCHING::DT_STEPPING_1ST);
489459 const bool second_order = (config->GetTime_Marching () == TIME_MARCHING::DT_STEPPING_2ND);
490460 const bool incompressible = (config->GetKind_Regime () == ENUM_REGIME::INCOMPRESSIBLE);
0 commit comments