Skip to content

Commit 9863c1d

Browse files
committed
quick fix for normal point in sharp corner
1 parent a3b2a8c commit 9863c1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8104,8 +8104,9 @@ void CPhysicalGeometry::FindNormal_Neighbor(const CConfig* config) {
81048104
Normal = vertex[iMarker][iVertex]->GetNormal();
81058105

81068106
/*--- Compute closest normal neighbor, note that the normal are oriented inwards ---*/
8107-
/*--- If the neighbor node is on a wall, we set it as a neighbor if there is no previous
8108-
neighbor. We also always overwrite a neighbor if an interior point is available. ---*/
8107+
/*--- If the node is on a wall, we set it as a neighbor only if no neighbor points
8108+
have been found yet. We also always overwrite a neighbor if an interior point
8109+
is available. ---*/
81098110
Point_Normal = 0;
81108111
cos_max = -2.0;
81118112
for (iNeigh = 0; iNeigh < nodes->GetnPoint(iPoint); iNeigh++) {

0 commit comments

Comments
 (0)