@@ -1771,29 +1771,25 @@ void CIncEulerSolver::Source_Residual(CGeometry *geometry, CSolver **solver_cont
17711771 }// if !streamwise_periodic_temperature
17721772 }// if streamwise_periodic
17731773
1774- // Added by Max
1775-
1776-
1774+ // Added by Max
17771775 if (jbay) {
17781776 unsigned long jPoint;
17791777 CNumerics* second_numerics = numerics_container[SOURCE_SECOND_TERM + omp_get_thread_num () * MAX_TERMS];
17801778 AD::StartNoSharedReading ();
17811779
17821780 /* Loop over the edges for the jBAY model */
1783-
17841781 for (auto color : EdgeColoring) {
17851782 SU2_OMP_FOR_DYN (nextMultiple (OMP_MIN_SIZE, color.groupSize ))
17861783 for (auto k = 0ul ; k < color.size ; ++k) {
17871784 auto iEdge = color.indices [k];
17881785
17891786 /* Get the points defining the edge */
1790-
17911787 iPoint = geometry->edges ->GetNode (iEdge, 0 );
17921788 jPoint = geometry->edges ->GetNode (iEdge, 1 );
1793-
1789+
17941790 /* Set edge index */
17951791 second_numerics->SetEdge (iEdge);
1796-
1792+
17971793 /* Set variables at the edge extreemes*/
17981794 second_numerics->SetDensity (nodes->GetDensity (iPoint), nodes->GetDensity (iPoint));
17991795 second_numerics->SetPrimitive (nodes->GetPrimitive (iPoint), nodes->GetPrimitive (jPoint));
@@ -1815,7 +1811,8 @@ void CIncEulerSolver::Source_Residual(CGeometry *geometry, CSolver **solver_cont
18151811 }
18161812 END_SU2_OMP_FOR
18171813 }
1818- AD::EndNoSharedReading ();}
1814+ AD::EndNoSharedReading ();
1815+ }
18191816
18201817 if (bay) {
18211818 AD::StartNoSharedReading ();
@@ -1842,7 +1839,7 @@ void CIncEulerSolver::Source_Residual(CGeometry *geometry, CSolver **solver_cont
18421839 END_SU2_OMP_FOR
18431840 AD::EndNoSharedReading ();
18441841 }
1845- // End added by max
1842+ // End added by max
18461843
18471844 /* --- Check if a verification solution is to be computed. ---*/
18481845
@@ -3273,6 +3270,4 @@ void CIncEulerSolver::ExtractAdjoint_SolutionExtra(su2activevector& adj_sol, con
32733270 if (config->GetKind_Streamwise_Periodic () == ENUM_STREAMWISE_PERIODIC::MASSFLOW) {
32743271 adj_sol[0 ] = SU2_TYPE::GetDerivative (SPvals.Streamwise_Periodic_PressureDrop );
32753272 }
3276- }
3277-
3278-
3273+ }
0 commit comments