##. This cmake code is not working ?????? MacOs..
message(STATUS "Checking OpenMP")
-find_package(OpenMP)
+find_package(OpenMP )
+if(OpenMP_CXX_FOUND)
+ message("OpenMP. Yessssssss")
+endif()
IF(OPENMP_FOUND)
message("Found OpenMP! ^_^")
# add flags for OpenMP
#include "bbcreaMaracasVisuManualPaint_Model.h"
#include "bbcreaMaracasVisuPackage.h"
-#include <omp.h>
-
+/* EED 20210-09-13 Not compiling in MacOs
+ #include <omp.h>
+*/
namespace bbcreaMaracasVisu
{
for (index=0; index<size; index++)
{
if ( (k1omp==index) || (k2omp==index) || (k3omp==index) ||
- (k4omp==index) || (k5omp==index) || (k6omp==index) )
- {
- if (size==1)
- {
- printf(" 100% (just one element)\n");
- } else {
- printf(" %d%% omp_get_num_threads=%d\n", (int)(((double)index/(double)(size-1))*100 ), omp_get_num_threads() );
- }
- }// if K#omp
+ (k4omp==index) || (k5omp==index) || (k6omp==index) )
+ { printf(" %d%\n", (int)(((double)index/(double)(size-1))*100 )); }
+
// double value1;
// GETVALUE2_VTK_CREA(value1,pBIP,sTBIP,index)
// if (value1>0)
bbSetOutputLstIndexs( LstIndexs );
} else {
- printf("EED Warnning! ReadCreaContourFile::Process %s is not a creaContour .roi file\n",bbGetInputFileNameRoi() );
+ printf("EED Warnning! ReadCreaContourFile::Process %s is not a creaContour .roi file\n",bbGetInputFileNameRoi().c_str() );
} // if --CreaContour--
} // if ff
} // if FileNameRoi