@@ -2646,87 +2646,6 @@ void CEulerSolver::Centered_Residual(CGeometry *geometry, CSolver **solver_conta
26462646 CConfig *config, unsigned short iMesh, unsigned short iRKStep) {
26472647
26482648 EdgeFluxResidual (geometry, solver_container, config);
2649- return ;
2650-
2651- const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
2652- const bool jst_scheme = (config->GetKind_Centered_Flow () == JST) && (iMesh == MESH_0);
2653- const bool jst_ke_scheme = (config->GetKind_Centered_Flow () == JST_KE) && (iMesh == MESH_0);
2654-
2655- /* --- Pick one numerics object per thread. ---*/
2656- CNumerics* numerics = numerics_container[CONV_TERM + omp_get_thread_num ()*MAX_TERMS];
2657-
2658- /* --- Loop over edge colors. ---*/
2659- for (auto color : EdgeColoring)
2660- {
2661- /* --- Chunk size is at least OMP_MIN_SIZE and a multiple of the color group size. ---*/
2662- SU2_OMP_FOR_DYN (nextMultiple (OMP_MIN_SIZE, color.groupSize ))
2663- for (auto k = 0ul ; k < color.size ; ++k) {
2664-
2665- auto iEdge = color.indices [k];
2666-
2667- /* --- Points in edge, set normal vectors, and number of neighbors ---*/
2668-
2669- auto iPoint = geometry->edges ->GetNode (iEdge,0 );
2670- auto jPoint = geometry->edges ->GetNode (iEdge,1 );
2671-
2672- numerics->SetNormal (geometry->edges ->GetNormal (iEdge));
2673- numerics->SetNeighbor (geometry->nodes ->GetnNeighbor (iPoint), geometry->nodes ->GetnNeighbor (jPoint));
2674-
2675- /* --- Set primitive variables w/o reconstruction ---*/
2676-
2677- numerics->SetPrimitive (nodes->GetPrimitive (iPoint), nodes->GetPrimitive (jPoint));
2678-
2679- /* --- Set the largest convective eigenvalue ---*/
2680-
2681- numerics->SetLambda (nodes->GetLambda (iPoint), nodes->GetLambda (jPoint));
2682-
2683- /* --- Set undivided laplacian an pressure based sensor ---*/
2684-
2685- if (jst_scheme) {
2686- numerics->SetUndivided_Laplacian (nodes->GetUndivided_Laplacian (iPoint),
2687- nodes->GetUndivided_Laplacian (jPoint));
2688- }
2689- if (jst_scheme || jst_ke_scheme) {
2690- numerics->SetSensor (nodes->GetSensor (iPoint), nodes->GetSensor (jPoint));
2691- }
2692-
2693- /* --- Grid movement ---*/
2694-
2695- if (dynamic_grid) {
2696- numerics->SetGridVel (geometry->nodes ->GetGridVel (iPoint), geometry->nodes ->GetGridVel (jPoint));
2697- }
2698-
2699- /* --- Compute residuals, and Jacobians ---*/
2700-
2701- auto residual = numerics->ComputeResidual (config);
2702-
2703- /* --- Update convective and artificial dissipation residuals. ---*/
2704-
2705- if (ReducerStrategy) {
2706- EdgeFluxes.SetBlock (iEdge, residual);
2707- if (implicit)
2708- Jacobian.SetBlocks (iEdge, residual.jacobian_i , residual.jacobian_j );
2709- }
2710- else {
2711- LinSysRes.AddBlock (iPoint, residual);
2712- LinSysRes.SubtractBlock (jPoint, residual);
2713- if (implicit)
2714- Jacobian.UpdateBlocks (iEdge, iPoint, jPoint, residual.jacobian_i , residual.jacobian_j );
2715- }
2716-
2717- /* --- Viscous contribution. ---*/
2718-
2719- Viscous_Residual (iEdge, geometry, solver_container,
2720- numerics_container[VISC_TERM + omp_get_thread_num ()*MAX_TERMS], config);
2721- }
2722- } // end color loop
2723-
2724- if (ReducerStrategy) {
2725- SumEdgeFluxes (geometry);
2726- if (implicit)
2727- Jacobian.SetDiagonalAsColumnSum ();
2728- }
2729-
27302649}
27312650
27322651void CEulerSolver::Upwind_Residual (CGeometry *geometry, CSolver **solver_container,
0 commit comments