Skip to content

Commit b8cc5ff

Browse files
committed
warning fix
1 parent 6f5610f commit b8cc5ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Common/src/geometry_structure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ void CGeometry::ComputeAirfoil_Section(su2double *Plane_P0, su2double *Plane_Nor
742742

743743
}
744744

745-
if ((jPoint > iPoint)
745+
if ((jPoint > iPoint) && (CrossProduct >= 0.0)
746746
&& ((node[iPoint]->GetCoord(0) > MinXCoord) && (node[iPoint]->GetCoord(0) < MaxXCoord))
747747
&& ((node[iPoint]->GetCoord(1) > MinYCoord) && (node[iPoint]->GetCoord(1) < MaxYCoord))
748748
&& ((node[iPoint]->GetCoord(2) > MinZCoord) && (node[iPoint]->GetCoord(2) < MaxZCoord))) {

SU2_CFD/src/solver_direct_mean.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8654,7 +8654,7 @@ void CEulerSolver::SetInlet(CConfig *config) {
86548654

86558655
void CEulerSolver::UpdateCustomBoundaryConditions(CGeometry **geometry_container, CConfig *config){
86568656

8657-
unsigned short iMGfine, iMGlevel, nMGlevel, iMarker;
8657+
unsigned short nMGlevel, iMarker;
86588658

86598659
// TODO: Update the fluid boundary conditions for MG
86608660
nMGlevel = config->GetnMGLevels();

0 commit comments

Comments
 (0)