@@ -10571,25 +10571,27 @@ void CPhysicalGeometry::SetWallDistance(CADTElemClass* WallADT, const CConfig* c
1057110571 /* --- distance to a solid wall element ---*/
1057210572 /* --------------------------------------------------------------------------*/
1057310573
10574- SU2_OMP_PARALLEL
1057510574 if (!WallADT->IsEmpty ()) {
1057610575 /* --- Solid wall boundary nodes are present. Compute the wall
1057710576 distance for all nodes. ---*/
1057810577
10579- SU2_OMP_FOR_DYN (roundUpDiv (nPoint, 2 * omp_get_max_threads ()))
10580- for (unsigned long iPoint = 0 ; iPoint < GetnPoint (); ++iPoint) {
10581- unsigned short markerID;
10582- unsigned long elemID;
10583- int rankID;
10584- su2double dist;
10578+ SU2_OMP_PARALLEL
10579+ {
10580+ SU2_OMP_FOR_DYN (roundUpDiv (nPoint, 2 * omp_get_max_threads ()))
10581+ for (unsigned long iPoint = 0 ; iPoint < GetnPoint (); ++iPoint) {
10582+ unsigned short markerID;
10583+ unsigned long elemID;
10584+ int rankID;
10585+ su2double dist;
1058510586
10586- WallADT->DetermineNearestElement (nodes->GetCoord (iPoint), dist, markerID, elemID, rankID);
10587+ WallADT->DetermineNearestElement (nodes->GetCoord (iPoint), dist, markerID, elemID, rankID);
1058710588
10588- if (dist < nodes->GetWall_Distance (iPoint)) {
10589- nodes->SetWall_Distance (iPoint, dist, rankID, iZone, markerID, elemID);
10589+ if (dist < nodes->GetWall_Distance (iPoint)) {
10590+ nodes->SetWall_Distance (iPoint, dist, rankID, iZone, markerID, elemID);
10591+ }
1059010592 }
10593+ END_SU2_OMP_FOR
1059110594 }
10592- END_SU2_OMP_FOR
10595+ END_SU2_OMP_PARALLEL
1059310596 }
10594- END_SU2_OMP_PARALLEL
1059510597}
0 commit comments