Commit b2d06e12 authored by Mike Kremer's avatar Mike Kremer
Browse files

Reverted checkin from before. Avoiding usage of OpenMP on Darwin per CMake...

Reverted checkin from before. Avoiding usage of OpenMP on Darwin per CMake setting since it always crashed.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11408 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f733f760
......@@ -122,11 +122,7 @@ void LaplaceLengthPlugin::computeLaplaceLength(MeshT* _mesh) {
for ( typename MeshT::VertexIter v_it = _mesh->vertices_begin() ; v_it != _mesh->vertices_end(); ++v_it)
handles.push_back( v_it.handle() );
/*
* OpenMP parallelization fails for some
* reason on Darwin architectures.
*/
#if defined(USE_OPENMP) && !defined(__APPLE__)
#ifdef USE_OPENMP
#pragma omp parallel for
#endif
for ( int i = 0 ; i < (int)handles.size(); ++i ) {
......@@ -171,11 +167,7 @@ void LaplaceLengthPlugin::computeLaplaceSquaredLength(MeshT* _mesh) {
for ( typename MeshT::VertexIter v_it = _mesh->vertices_begin() ; v_it != _mesh->vertices_end(); ++v_it)
handles.push_back( v_it.handle() );
/*
* OpenMP parallelization fails for some
* reason on Darwin architectures.
*/
#if defined(USE_OPENMP) && !defined(__APPLE__)
#ifdef USE_OPENMP
#pragma omp parallel for
#endif
for ( int i = 0 ; i < (int)handles.size(); ++i ) {
......
Supports Markdown
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