Commit 662825d4 authored by berenger-bramas's avatar berenger-bramas
Browse files

Small updates

(omp flush(var) is not allowed with intel)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@234 2616d619-271b-44dc-8df4-d4a8f33a7222
parent de106234
...@@ -42,7 +42,7 @@ public: ...@@ -42,7 +42,7 @@ public:
if(nbThreadsArrived == nbThreads) { if(nbThreadsArrived == nbThreads) {
currentNbThread = 0; currentNbThread = 0;
sense = !sense; sense = !sense;
#pragma omp flush(sense) #pragma omp flush
} }
else { else {
volatile const bool* const ptSense = &sense; volatile const bool* const ptSense = &sense;
......
...@@ -47,7 +47,7 @@ class FQuickSort { ...@@ -47,7 +47,7 @@ class FQuickSort {
/* Use in the sequential qs */ /* Use in the sequential qs */
static IndexType QsPartition(SortType array[], IndexType left, IndexType right){ static IndexType QsPartition(SortType array[], IndexType left, IndexType right){
const IndexType part = right; const IndexType part = right;
Swap(array[part],array[(right + left ) / 2]); Swap(array[part],array[((right - left ) / 2) + left]);
--right; --right;
while(true){ while(true){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment