Skip to content
Snippets Groups Projects
Commit 427e82e8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use inline-style onelab definitions

parent bf8cda51
No related branches found
No related tags found
No related merge requests found
...@@ -240,7 +240,7 @@ void add_param(std::string par, std::string value, std::string label, ...@@ -240,7 +240,7 @@ void add_param(std::string par, std::string value, std::string label,
std::string path, std::string fileName) std::string path, std::string fileName)
{ {
std::ostringstream sstream; std::ostringstream sstream;
sstream << "DefineConstant[ " << par << " = { " << value; sstream << par << " = DefineNumber[ " << value;
sstream << ", Name \""; sstream << ", Name \"";
if(path.size() && label.size()) if(path.size() && label.size())
sstream << path << "/" << label; sstream << path << "/" << label;
...@@ -250,7 +250,7 @@ void add_param(std::string par, std::string value, std::string label, ...@@ -250,7 +250,7 @@ void add_param(std::string par, std::string value, std::string label,
sstream << label; sstream << label;
else else
sstream << par; sstream << par;
sstream << "\"}];"; sstream << "\" ];";
add_infile(sstream.str(), fileName); add_infile(sstream.str(), fileName);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment