Skip to content
Snippets Groups Projects
Commit aa7995c0 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

modif pour pouvoir appeler gmsh comme client onelab

parent b4abd514
No related branches found
No related tags found
No related merge requests found
...@@ -592,6 +592,23 @@ void Msg::InitializeOnelab(const std::string &name, const std::string &sockname) ...@@ -592,6 +592,23 @@ void Msg::InitializeOnelab(const std::string &name, const std::string &sockname)
onelab::remoteNetworkClient *c = new onelab::remoteNetworkClient(name, sockname); onelab::remoteNetworkClient *c = new onelab::remoteNetworkClient(name, sockname);
_onelabClient = c; _onelabClient = c;
_client = c->getGmshClient(); _client = c->getGmshClient();
onelab::string o(name + "/FileExtension", ".geo");
//o.setVisible(false);
_onelabClient->set(o);
onelab::string o3(name + "/9CheckCommand", "-");
//o3.setVisible(false);
_onelabClient->set(o3);
onelab::string o4(name + "/9ComputeCommand", "-3");
//o4.setVisible(false);
_onelabClient->set(o4);
std::vector<onelab::string> ps;
_onelabClient->get(ps, name + "/Action");
if(ps.size()){
Info("Performing OneLab '%s'", ps[0].getValue().c_str());
if(ps[0].getValue() == "initialize") Exit(0);
}
} }
#endif #endif
} }
......
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