@@ -84,8 +84,10 @@ CTransLMSolver::CTransLMSolver(CGeometry *geometry, CConfig *config, unsigned sh
8484 LinSysRes.Initialize (nPoint, nPointDomain, nVar, 0.0 );
8585 System.SetxIsZero (true );
8686
87- if (ReducerStrategy)
87+ if (ReducerStrategy) {
8888 EdgeFluxes.Initialize (geometry->GetnEdge (), geometry->GetnEdge (), nVar, nullptr );
89+ EdgeFluxesDiff.Initialize (geometry->GetnEdge (), geometry->GetnEdge (), nVar, nullptr );
90+ }
8991
9092 /* --- Initialize the BGS residuals in multizone problems. ---*/
9193 if (multizone){
@@ -214,7 +216,7 @@ void CTransLMSolver::Postprocessing(CGeometry *geometry, CSolver **solver_contai
214216 const su2double vel_u = flowNodes->GetVelocity (iPoint, 0 );
215217 const su2double vel_v = flowNodes->GetVelocity (iPoint, 1 );
216218 const su2double vel_w = (nDim ==3 ) ? flowNodes->GetVelocity (iPoint, 2 ) : 0.0 ;
217- const su2double VelocityMag = sqrt (vel_u*vel_u + vel_v*vel_v + vel_w*vel_w);
219+ const su2double VelocityMag = max ( sqrt (vel_u*vel_u + vel_v*vel_v + vel_w*vel_w), 1e-10 );
218220 su2double omega = 0.0 ;
219221 su2double k = 0.0 ;
220222 if (TurbFamily == TURB_FAMILY::KW){
@@ -253,8 +255,8 @@ void CTransLMSolver::Postprocessing(CGeometry *geometry, CSolver **solver_contai
253255 su2double Intermittency_Sep = 2.0 *max (0.0 , Re_v/(3.235 *Corr_Rec)-1.0 )*f_reattach;
254256 Intermittency_Sep = min (Intermittency_Sep,2.0 )*f_theta;
255257 Intermittency_Sep = min (max (0.0 , Intermittency_Sep), 2.0 );
256- nodes -> SetIntermittencySep (iPoint, Intermittency_Sep);
257- nodes -> SetIntermittencyEff (iPoint, Intermittency_Sep);
258+ nodes-> SetIntermittencySep (iPoint, Intermittency_Sep);
259+ nodes-> SetIntermittencyEff (iPoint, Intermittency_Sep);
258260
259261 }
260262 END_SU2_OMP_FOR
@@ -282,7 +284,6 @@ void CTransLMSolver::Source_Residual(CGeometry *geometry, CSolver **solver_conta
282284 const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
283285
284286 auto * flowNodes = su2staticcast_p<CFlowVariable*>(solver_container[FLOW_SOL]->GetNodes ());
285- // auto* turbNodes = su2staticcast_p<CFlowVariable*>(solver_container[TURB_SOL]->GetNodes());
286287 CVariable* turbNodes = solver_container[TURB_SOL]->GetNodes ();
287288
288289 /* --- Pick one numerics object per thread. ---*/
@@ -547,8 +548,8 @@ void CTransLMSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfi
547548
548549 const auto index = counter * Restart_Vars[1 ] + skipVars;
549550 for (auto iVar = 0u ; iVar < nVar; iVar++) nodes->SetSolution (iPoint_Local, iVar, Restart_Data[index + iVar]);
550- nodes ->SetIntermittencySep (iPoint_Local, Restart_Data[index + 2 ]);
551- nodes ->SetIntermittencyEff (iPoint_Local, Restart_Data[index + 3 ]);
551+ nodes->SetIntermittencySep (iPoint_Local, Restart_Data[index + 2 ]);
552+ nodes->SetIntermittencyEff (iPoint_Local, Restart_Data[index + 3 ]);
552553
553554 /* --- Increment the overall counter for how many points have been loaded. ---*/
554555 counter++;
0 commit comments