Commit b6f4f303 authored by Mike Kremer's avatar Mike Kremer

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 ba123b99
......@@ -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 ) {
......
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