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

hack to add CreateTopology

parent a7a9cc1f
No related branches found
No related tags found
No related merge requests found
...@@ -314,6 +314,7 @@ void add_physical(std::string type, List_T *list, std::string fileName) ...@@ -314,6 +314,7 @@ void add_physical(std::string type, List_T *list, std::string fileName)
void add_compound(std::string type, List_T *list, std::string fileName) void add_compound(std::string type, List_T *list, std::string fileName)
{ {
std::ostringstream sstream; std::ostringstream sstream;
if(SplitFileName(fileName)[2] != ".geo") sstream << "CreateTopology;\n";
sstream << "Compound " << type << "(" << NEWREG() << ") = {" sstream << "Compound " << type << "(" << NEWREG() << ") = {"
<< list2string(list) << "};"; << list2string(list) << "};";
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.
Finish editing this message first!
Please register or to comment