Skip to content

Commit 40119af

Browse files
committed
clang-format error
1 parent a4946c3 commit 40119af

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7009,9 +7009,9 @@ void CPhysicalGeometry::FindUniqueNode_PeriodicBound(const CConfig* config) {
70097009
* ---*/
70107010
}
70117011
break; // Actually no more than one streamwise periodic marker pair is allowed
7012-
} // receiver conditional
7013-
} // periodic conditional
7014-
} // marker loop
7012+
} // receiver conditional
7013+
} // periodic conditional
7014+
} // marker loop
70157015

70167016
/*--- Copy the Coordinates and norm into send buffer. ---*/
70177017
for (unsigned short iDim = 0; iDim < nDim; iDim++) Buffer_Send_RefNode[iDim] = nodes->GetCoord(iPointMin, iDim);
@@ -8105,7 +8105,7 @@ void CPhysicalGeometry::FindNormal_Neighbor(const CConfig* config) {
81058105

81068106
/*--- Compute closest normal neighbor, note that the normal are oriented inwards ---*/
81078107
Point_Normal = 0;
8108-
cos_max = -1.0;
8108+
cos_max = -2.0;
81098109
for (iNeigh = 0; iNeigh < nodes->GetnPoint(iPoint); iNeigh++) {
81108110
jPoint = nodes->GetPoint(iPoint, iNeigh);
81118111
scalar_prod = 0.0;
@@ -8123,8 +8123,9 @@ void CPhysicalGeometry::FindNormal_Neighbor(const CConfig* config) {
81238123

81248124
/*--- Get maximum cosine ---*/
81258125
if (cos_alpha >= cos_max) {
8126-
Point_Normal = jPoint;
8127-
cos_max = cos_alpha;
8126+
if ((!nodes->GetViscousBoundary(iPoint)) || ((nodes->GetViscousBoundary(iPoint)) && (cos_max < -1.0)))
8127+
Point_Normal = jPoint;
8128+
if (!nodes->GetViscousBoundary(iPoint)) cos_max = cos_alpha;
81288129
}
81298130
}
81308131
vertex[iMarker][iVertex]->SetNormal_Neighbor(Point_Normal);

0 commit comments

Comments
 (0)