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

temp fix for onelab initialization

parent 548fc31d
No related branches found
No related tags found
No related merge requests found
......@@ -637,9 +637,11 @@ void Msg::InitializeOnelab(const std::string &name, const std::string &sockname)
if(_onelabClient) delete _onelabClient;
if(sockname.empty()){
_onelabClient = new onelab::localClient("Gmsh");
if(name != "Gmsh"){ // load db from file:
if(!_onelabClient->fromFile(name))
Error("Error loading onelab database '%s'", name.c_str());
}
}
else{
onelab::remoteNetworkClient *c = new onelab::remoteNetworkClient(name, sockname);
_onelabClient = c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment