Skip to content

Commit 55d2163

Browse files
committed
update
1 parent 47f3839 commit 55d2163

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,6 @@ su2double CTurbSSTSolver::GetNearest_Neighbor(CGeometry *geometry, unsigned lon
10341034
su2double dist_min;
10351035
su2double distance = 0.0;
10361036
unsigned long Point_Normal, jPoint;
1037-
unsigned short jNeigh;
10381037

10391038
const su2double* Coord_i = geometry->nodes->GetCoord(iPoint);
10401039

@@ -1069,12 +1068,13 @@ su2double CTurbSSTSolver::GetNearest_Neighbor(CGeometry *geometry, unsigned lon
10691068
/*--- Determine if edge points inwards or outwards of iPoint.
10701069
* If inwards we need to flip the area vector. ---*/
10711070

1072-
su2double dir = (iPoint < jPoint) ? 1.0 : -1.0;
1073-
su2double weight = dir * TwoVol;
1071+
//su2double dir = (iPoint < jPoint) ? 1.0 : -1.0;
1072+
//su2double weight = dir * TwoVol;
10741073
const su2double* Normal = geometry->edges->GetNormal(iEdge);
10751074
Area = GeometryToolbox::Norm(nDim, Normal);
10761075

1077-
dist_min += weight * Area;
1076+
//dist_min += weight * Area;
1077+
dist_min += TwoVol * Area;
10781078
}
10791079
}
10801080

0 commit comments

Comments
 (0)