Skip to content

Commit 9ef63ef

Browse files
committed
Address compiler warning.
1 parent 1835a84 commit 9ef63ef

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10576,11 +10576,11 @@ void CPhysicalGeometry::SetWallDistance(CADTElemClass* WallADT, const CConfig* c
1057610576
distance for all nodes. ---*/
1057710577

1057810578
SU2_OMP_PARALLEL {
10579-
SU2_OMP_FOR_(
1058010579
#ifndef __SANITIZE_THREAD__
10581-
schedule(dynamic, roundUpDiv(nPoint, 2 * omp_get_max_threads()))
10580+
SU2_OMP_FOR_DYN(roundUpDiv(nPoint, 2 * omp_get_max_threads()))
10581+
#else
10582+
SU2_OMP_FOR_()
1058210583
#endif
10583-
)
1058410584
for (unsigned long iPoint = 0; iPoint < GetnPoint(); ++iPoint) {
1058510585
unsigned short markerID;
1058610586
unsigned long elemID;
@@ -10593,7 +10593,11 @@ void CPhysicalGeometry::SetWallDistance(CADTElemClass* WallADT, const CConfig* c
1059310593
nodes->SetWall_Distance(iPoint, dist, rankID, iZone, markerID, elemID);
1059410594
}
1059510595
}
10596+
#ifndef __SANITIZE_THREAD__
1059610597
END_SU2_OMP_FOR
10598+
#else
10599+
END_SU2_OMP_FOR
10600+
#endif
1059710601
}
1059810602
END_SU2_OMP_PARALLEL
1059910603
}

0 commit comments

Comments
 (0)