mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3253 OpenMP : Give name to all critical sections
This commit is contained in:
@@ -183,7 +183,7 @@ void RivFaultGeometryGenerator::computeArrays()
|
||||
m_grid->cellFaceVertexIndices(face, faceConn);
|
||||
|
||||
// Critical section to avoid two threads accessing the arrays at the same time.
|
||||
#pragma omp critical
|
||||
#pragma omp critical(critical_section_RivFaultGeometryGenerator_computeArrays)
|
||||
{
|
||||
int n;
|
||||
for (n = 0; n < 4; n++)
|
||||
|
||||
@@ -123,7 +123,7 @@ void RivNNCGeometryGenerator::computeArrays()
|
||||
{
|
||||
vx2 = vx3;
|
||||
vx3 = cvf::Vec3f( conn.m_polygon[vxIdx] - offset);
|
||||
#pragma omp critical
|
||||
#pragma omp critical(critical_section_RivNNCGeometryGenerator_computeArrays)
|
||||
{
|
||||
vertices.push_back(vx1);
|
||||
vertices.push_back(vx2);
|
||||
|
||||
Reference in New Issue
Block a user