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

new OnelabRun function

parent dae30953
No related branches found
No related tags found
No related merge requests found
......@@ -1083,6 +1083,20 @@ void Msg::ImportPhysicalsAsOnelabRegions()
#endif
}
void Msg::RunOnelabClient(const std::string &name)
{
#if defined(HAVE_ONELAB)
onelab::server::citer it = onelab::server::instance()->findClient(name);
if(it == onelab::server::instance()->lastClient()){
Msg::Error("Unknown ONELAB client `%s'", name.c_str());
return;
}
onelab::string o(name + "/Action", "compute");
onelab::server::instance()->set(o);
it->second->run();
#endif
}
void Msg::FinalizeOnelab()
{
#if defined(HAVE_ONELAB)
......
......@@ -113,6 +113,7 @@ class Msg {
std::map<std::string, std::vector<double> > &fopt,
std::map<std::string, std::vector<std::string> > &copt);
static void UndefineOnelabParameter(const std::string &name);
static void RunOnelabClient(const std::string &name);
static void ImportPhysicalsAsOnelabRegions();
};
......
This diff is collapsed.
......@@ -2640,6 +2640,9 @@ Command :
std::string tmp = FixRelativePath(gmsh_yyname, $2);
CreateSingleDir(tmp);
}
else if(!strcmp($1, "OnelabRun")){
Msg::RunOnelabClient($2);
}
else{
yymsg(0, "Unknown command '%s'", $1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment