From 4cee65ef053602a125a458a246ce967d79bd8ec4 Mon Sep 17 00:00:00 2001
From: Mohcine Chraibi <m.chraibi@fz-juelich.de>
Date: Tue, 26 Feb 2019 06:24:06 +0100
Subject: [PATCH] :bug: in misplaces return method_I

---
 methods/Method_I.cpp | 32 +-------------------------------
 1 file changed, 1 insertion(+), 31 deletions(-)

diff --git a/methods/Method_I.cpp b/methods/Method_I.cpp
index 434b517d..3a302ebe 100644
--- a/methods/Method_I.cpp
+++ b/methods/Method_I.cpp
@@ -214,8 +214,8 @@ bool Method_I::Process(const PedData& peddata,const fs::path& scriptsLocation, c
           {
                fclose(_fIndividualFD);
           }
-          return return_value;
      }
+    return return_value;
 }
 
      bool Method_I::OpenFileMethodI()
@@ -522,36 +522,6 @@ bool Method_I::Process(const PedData& peddata,const fs::path& scriptsLocation, c
           velo.close();
      }
 
-/*std::string polygon_to_string2(const polygon_2d & polygon)
-  {
-  string polygon_str = "((";
-  for(auto point: boost::geometry::exterior_ring(polygon) )
-  {
-  double x = boost::geometry::get<0>(point);
-  double y = boost::geometry::get<1>(point);
-  polygon_str.append("(");
-  polygon_str.append(std::to_string(x));
-  polygon_str.append(", ");
-  polygon_str.append(std::to_string(y));
-  polygon_str.append("), ");
-  }
-  for(auto ring: boost::geometry::interior_rings(polygon) )
-  {
-  for(auto point: ring )
-  {
-  double x = boost::geometry::get<0>(point);
-  double y = boost::geometry::get<1>(point);
-  polygon_str.append("(");
-  polygon_str.append(std::to_string(x));
-  polygon_str.append(", ");
-  polygon_str.append(std::to_string(y));
-  polygon_str.append("), ");
-  }
-  }
-  polygon_str.pop_back(); polygon_str.pop_back();  //remove last komma
-  polygon_str.append("))");
-  return polygon_str;
-  }*/
 
      void Method_I::GetIndividualFD(const vector<polygon_2d>& polygon, const vector<double>& Velocity, const vector<int>& Id, const polygon_2d& measureArea, const string& frid)
      {
-- 
GitLab