From 17c11eb252fcbf6d76aa63b6ac968d5e43667dd6 Mon Sep 17 00:00:00 2001
From: bramas <berenger.bramas@inria.fr>
Date: Sat, 8 Nov 2014 18:14:30 +0100
Subject: [PATCH] Make the OMP v4 version working

---
 Src/GroupTree/FGroupTaskDepAlgorithm.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Src/GroupTree/FGroupTaskDepAlgorithm.hpp b/Src/GroupTree/FGroupTaskDepAlgorithm.hpp
index 8f73bf5a1..2422c7e14 100644
--- a/Src/GroupTree/FGroupTaskDepAlgorithm.hpp
+++ b/Src/GroupTree/FGroupTaskDepAlgorithm.hpp
@@ -330,7 +330,7 @@ protected:
                     FAssertLF( nbSubCellGroups <= 9 );
                 }
 
-                #pragma omp task default(none) firstprivate(idxLevel, currentCells, subCellGroups, nbSubCellGroups) depend(inout: currentCells[0]) depend(in: subCellGroups[0])
+                #pragma omp task default(none) firstprivate(idxLevel, currentCells, subCellGroups, nbSubCellGroups) depend(inout: currentCells[0]) depend(in: subCellGroups[0][0], subCellGroups[1][0], subCellGroups[2][0], subCellGroups[3][0], subCellGroups[4][0], subCellGroups[5][0], subCellGroups[6][0], subCellGroups[7][0], subCellGroups[8][0])
                 {
                     const MortonIndex blockStartIdx = currentCells->getStartingIndex();
                     const MortonIndex blockEndIdx   = currentCells->getEndingIndex();
@@ -509,7 +509,7 @@ protected:
                     FAssertLF( nbSubCellGroups <= 9 );
                 }
 
-                #pragma omp task default(none) firstprivate(idxLevel, currentCells, subCellGroups, nbSubCellGroups) depend(inout: subCellGroups[0]) depend(in: currentCells[0])
+                #pragma omp task default(none) firstprivate(idxLevel, currentCells, subCellGroups, nbSubCellGroups) depend(inout: subCellGroups[0][0], subCellGroups[1][0], subCellGroups[2][0], subCellGroups[3][0], subCellGroups[4][0], subCellGroups[5][0], subCellGroups[6][0], subCellGroups[7][0], subCellGroups[8][0]) depend(in: currentCells[0])
                 {
                     const MortonIndex blockStartIdx = currentCells->getStartingIndex();
                     const MortonIndex blockEndIdx = currentCells->getEndingIndex();
-- 
GitLab