#3253 OpenMP : Give name to all critical sections

This commit is contained in:
Magne Sjaastad committed 2018-08-27 13:04:29 +02:00
1 parent 9529142a30
commit 9e3a100bcc
8 files changed
+35 -31

No files matched your search

@@ -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++)