Skip to content

Commit bd45235

Browse files
committed
cleanup
1 parent 4b30110 commit bd45235

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,14 +1038,14 @@ void CTurbSSTSolver::SetUniformInlet(const CConfig* config, unsigned short iMark
10381038
su2double CTurbSSTSolver::GetNearest_Neighbor(CGeometry *geometry, unsigned long iPoint, unsigned short iMarker, unsigned long iVertex) {
10391039
su2double dist_min;
10401040
su2double distance = 0.0;
1041-
unsigned long Point_Normal, jPoint;
1041+
unsigned long Point_Normal;
10421042

10431043
/*--- Compute closest normal neighbor, note that the normal are oriented inwards ---*/
10441044
Point_Normal = 0;
10451045
// we use distance
10461046
dist_min = 0.0;
10471047
for (size_t iNeigh = 0; iNeigh < geometry->nodes->GetnPoint(iPoint); iNeigh++) {
1048-
jPoint = geometry->nodes->GetPoint(iPoint, iNeigh);
1048+
size_t jPoint = geometry->nodes->GetPoint(iPoint, iNeigh);
10491049

10501050
su2double distance2 = GeometryToolbox::SquaredDistance(nDim,
10511051
geometry->nodes->GetCoord(iPoint),
@@ -1064,7 +1064,6 @@ su2double CTurbSSTSolver::GetNearest_Neighbor(CGeometry *geometry, unsigned lon
10641064
su2double TwoVol = 2.0* (geometry->nodes->GetVolume(iPoint) + geometry->nodes->GetPeriodicVolume(iPoint));
10651065
for (size_t iNeigh = 0; iNeigh < geometry->nodes->GetnPoint(iPoint); ++iNeigh) {
10661066
size_t iEdge = geometry->nodes->GetEdge(iPoint, iNeigh);
1067-
size_t jPoint = geometry->nodes->GetPoint(iPoint, iNeigh);
10681067
const su2double* Normal = geometry->edges->GetNormal(iEdge);
10691068
Area = GeometryToolbox::Norm(nDim, Normal);
10701069

0 commit comments

Comments
 (0)