From 994ebb1389c1f70a9970a03a986475570d5774b7 Mon Sep 17 00:00:00 2001
From: Hugo TRACHINO <hugo.trachino@pedago-ext.ensiie.fr>
Date: Fri, 4 Oct 2019 14:49:36 +0200
Subject: [PATCH] parrallel part 1

---
 sgi2018/src/follower/transform.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sgi2018/src/follower/transform.h b/sgi2018/src/follower/transform.h
index f2409f2..92f1bec 100644
--- a/sgi2018/src/follower/transform.h
+++ b/sgi2018/src/follower/transform.h
@@ -16,6 +16,7 @@ namespace Transform
         // NOTE:
         // to generate a point from a parameter i, you can use  :
         ComplexMatrix res(xiVector.size(), startIndexes.size());
+        #pragma omp parallel for
         for(unsigned int i = 0; i < xiVector.size(); i ++){
           Point endPoint(startPoint.omega, startPoint.size, xiVector[i]);
           std::vector<unsigned int> indexesResult = Follow::adaptativStep(startPoint, endPoint, startIndexes, distanceThreshold, minstepsize);
@@ -40,9 +41,12 @@ namespace Transform
     {
         // NOTE: identical to the previous function but dumps all eigenvalues produced, not just targets, to outCsv
         //
+
         ComplexMatrix res(xiVector.size(), startIndexes.size());
-        #pragma omp parallel for
+        std::cout << "Entered linear path..." << std::endl;
+        #pragma omp parallel for 
         for(unsigned int i = 0; i < xiVector.size(); i ++){
+          std::cout << i << std::endl;
           Point endPoint(startPoint.omega, startPoint.size, xiVector[i]);
           std::vector<unsigned int> indexesResult = Follow::adaptativStep(startPoint, endPoint, startIndexes, distanceThreshold, minstepsize);
           ComplexVector v(indexesResult.size());
@@ -54,6 +58,7 @@ namespace Transform
         //
         // to follow several targets from a point to another, you can use :
         }
+
         return res;
         // to output the eigenvalues of a point, you can use :
 
-- 
GitLab