Skip to content

Commit dded5dd

Browse files
committed
Reformatted CEulerSolver CIncEulerSolver
1 parent 106fbd3 commit dded5dd

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

SU2_CFD/src/solvers/CEulerSolver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,14 +2249,12 @@ void CEulerSolver::Source_Residual(CGeometry *geometry, CSolver **solver_contain
22492249
AD::StartNoSharedReading();
22502250

22512251
/* Loop over the edges for the jBAY model */
2252-
22532252
for (auto color : EdgeColoring) {
22542253
SU2_OMP_FOR_DYN(nextMultiple(OMP_MIN_SIZE, color.groupSize))
22552254
for (auto k = 0ul; k < color.size; ++k) {
22562255
auto iEdge = color.indices[k];
22572256

22582257
/* Get the points defining the edge */
2259-
22602258
iPoint = geometry->edges->GetNode(iEdge, 0);
22612259
jPoint = geometry->edges->GetNode(iEdge, 1);
22622260

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)