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

open .pro files automatically

parent e9799289
No related branches found
No related tags found
No related merge requests found
...@@ -374,6 +374,15 @@ int MergeFile(const std::string &fileName, bool warnIfMissing) ...@@ -374,6 +374,15 @@ int MergeFile(const std::string &fileName, bool warnIfMissing)
status = readFile3M(fileName); status = readFile3M(fileName);
} }
#endif #endif
#if defined(HAVE_ONELAB) && defined(HAVE_FLTK)
else if(ext == ".pro" && opt_solver_name(0, GMSH_GET, "") == "GetDP"){
std::vector<std::string> split = SplitFileName(fileName);
GModel::current()->setName("");
status = MergeFile(split[0] + split[1] + ".geo");
solver_cb(0, 0);
return status;
}
#endif
#if defined(HAVE_ONELAB_METAMODEL) && defined(HAVE_FLTK) #if defined(HAVE_ONELAB_METAMODEL) && defined(HAVE_FLTK)
else if(ext == ".ol"){ else if(ext == ".ol"){
// TODO: allow passing action to metamodel from command line // TODO: allow passing action to metamodel from command line
......
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