@@ -79,7 +79,12 @@ CScalarSolver<VariableType>::~CScalarSolver() {
7979
8080template <class VariableType >
8181void CScalarSolver<VariableType>::CommonPreprocessing(CGeometry *geometry, const CConfig *config, const bool Output) {
82+ /* --- Define booleans that are solver specific through CConfig's GlobalParams which have to be set in CFluidIteration
83+ * before calling these solver functions. ---*/
8284 const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
85+ const bool muscl = config->GetMUSCL ();
86+ const bool limiter = (config->GetKind_SlopeLimit () != NO_LIMITER) &&
87+ (config->GetInnerIter () <= config->GetLimiterIter ());
8388
8489 /* --- Clear residual and system matrix, not needed for
8590 * reducer strategy as we write over the entire matrix. ---*/
@@ -114,7 +119,12 @@ template <class VariableType>
114119void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver** solver_container,
115120 CNumerics** numerics_container, CConfig* config,
116121 unsigned short iMesh) {
122+ /* --- Define booleans that are solver specific through CConfig's GlobalParams which have to be set in CFluidIteration
123+ * before calling these solver functions. ---*/
117124 const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
125+ const bool muscl = config->GetMUSCL ();
126+ const bool limiter = (config->GetKind_SlopeLimit () != NO_LIMITER) &&
127+ (config->GetInnerIter () <= config->GetLimiterIter ());
118128
119129 /* --- Only reconstruct flow variables if MUSCL is on for flow (requires upwind) and turbulence. ---*/
120130 const bool musclFlow = config->GetMUSCL_Flow () && muscl && (config->GetKind_ConvNumScheme_Flow () == SPACE_UPWIND);
0 commit comments