]> Creatis software - bbtk.git/commitdiff
#3484 Bug ImageBoundaries box OpenMP
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 21 Jan 2022 17:35:51 +0000 (18:35 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 21 Jan 2022 17:35:51 +0000 (18:35 +0100)
packages/vtk/src/bbvtkImageBoundaries.cxx

index 1a2128c2daf62ffdc363fb17222ad63e08852d84..c477aade336f12711fd8376ed00224843a8eca37 100644 (file)
@@ -89,16 +89,16 @@ int k4omp=(double)(maxZ-1)*0.6;
 int k5omp=(double)(maxZ-1)*0.8;
 int k6omp=(double)(maxZ-1)*1.0;
 
-printf("EED ImageBoundaries::Process (with openmp)\n");
+//printf("EED ImageBoundaries::Process (with openmp)\n");
 
 // http://jakascorner.com/blog/2016/05/omp-for.html
-#pragma omp parallel shared(maxZ,bXMin,bYMin,bZMin,bXMax,bYMax,bZMax)
-{ 
+//#pragma omp parallel shared(maxZ,bXMin,bYMin,bZMin,bXMax,bYMax,bZMax)
+//
                #pragma omp for
                for ( k=0 ; k<maxZ ; k++)
                {
-if ( (k1omp==k) || (k2omp==k) || (k3omp==k) || 
-     (k4omp==k) || (k5omp==k) || (k6omp==k) ) { printf("  %d%\n", (int)(((double)k/(double)(maxZ-1))*100 )); }
+//if ( (k1omp==k) || (k2omp==k) || (k3omp==k) || 
+//     (k4omp==k) || (k5omp==k) || (k6omp==k) ) { printf("  %d%\n", (int)(((double)k/(double)(maxZ-1))*100 )); }
                        int i,j;
                        double vItmpOMP;
                        for (j=0 ; j<maxY ; j++)
@@ -120,7 +120,7 @@ if ( (k1omp==k) || (k2omp==k) || (k3omp==k) ||
                                } // for k
                        } // for j
                } // i
-} // #pragma
+// } // #pragma
 
                std::vector<int> tmpIndex;              
                std::vector<int> tmpSize;