From 427e82e8042afd876dea4e83698456aa80c88977 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 7 May 2014 17:38:20 +0000
Subject: [PATCH] use inline-style onelab definitions

---
 Geo/GeoStringInterface.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Geo/GeoStringInterface.cpp b/Geo/GeoStringInterface.cpp
index 68e7fef955..82c579034b 100644
--- a/Geo/GeoStringInterface.cpp
+++ b/Geo/GeoStringInterface.cpp
@@ -240,7 +240,7 @@ void add_param(std::string par, std::string value, std::string label,
                std::string path, std::string fileName)
 {
   std::ostringstream sstream;
-  sstream << "DefineConstant[ " << par << " = { " << value;
+  sstream << par << " = DefineNumber[ " << value;
   sstream << ", Name \"";
   if(path.size() && label.size())
     sstream << path << "/" << label;
@@ -250,7 +250,7 @@ void add_param(std::string par, std::string value, std::string label,
     sstream << label;
   else
     sstream << par;
-  sstream << "\"}];";
+  sstream << "\" ];";
   add_infile(sstream.str(), fileName);
 }
 
-- 
GitLab