@@ -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);
@@ -8104,11 +8104,8 @@ 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 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. ---*/
81108107 Point_Normal = 0 ;
8111- cos_max = -2 .0 ;
8108+ cos_max = -1 .0 ;
81128109 for (iNeigh = 0 ; iNeigh < nodes->GetnPoint (iPoint); iNeigh++) {
81138110 jPoint = nodes->GetPoint (iPoint, iNeigh);
81148111 scalar_prod = 0.0 ;
@@ -8126,11 +8123,8 @@ void CPhysicalGeometry::FindNormal_Neighbor(const CConfig* config) {
81268123
81278124 /* --- Get maximum cosine ---*/
81288125 if (cos_alpha >= cos_max) {
8129- /* --- If point is on the wall, only add it if Point_Normal was not set before. ---*/
8130- /* if ((!nodes->GetViscousBoundary(iPoint)) || ((nodes->GetViscousBoundary(iPoint)) && (cos_max < -1.0)))*/
81318126 Point_Normal = jPoint;
8132- /* --- Only set angle if it is not on a wall. */
8133- if (!nodes->GetViscousBoundary (iPoint)) cos_max = cos_alpha;
8127+ cos_max = cos_alpha;
81348128 }
81358129 }
81368130 vertex[iMarker][iVertex]->SetNormal_Neighbor (Point_Normal);
0 commit comments