From 2b23b7a281a763fcd0a82d105f2b4b8e9f34e4b2 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 26 Aug 2009 17:26:25 +0000
Subject: [PATCH] oops, should not have committed openmp tests with jf

---
 Mesh/Generator.cpp | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp
index 91031ed1da..46177bdf7a 100644
--- a/Mesh/Generator.cpp
+++ b/Mesh/Generator.cpp
@@ -409,23 +409,10 @@ static void Mesh2D(GModel *m)
   // and curve meshes) is global as it depends on a smooth normal
   // field generated from the surface mesh of the source surfaces
   if(!Mesh2DWithBoundaryLayers(m)){
-
-    std::vector<GFace*> blob;
-    for(GModel::fiter it = m->firstFace() ; it!=m->lastFace(); ++it){
-      blob.push_back(*it);
-    }    
-
-
-    meshGFace mesher;
-#pragma omp parallel for schedule(dynamic) 
-    for(int i=0; i<blob.size();i++){
-      mesher(blob[i]);
-    }    
-#pragma omp barrier
-
-      //    std::for_each(m->firstFace(), m->lastFace(), meshGFace());        
+    std::for_each(m->firstFace(), m->lastFace(), meshGFace());
     int nIter = 0;
     while(1){
+      meshGFace mesher;
       int nbPending = 0;
       for(GModel::fiter it = m->firstFace() ; it!=m->lastFace(); ++it){
         if ((*it)->meshStatistics.status == GFace::PENDING){
-- 
GitLab