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

onelab serveur now sends client name to client

parent c0287e8f
No related branches found
No related tags found
No related merge requests found
......@@ -145,10 +145,12 @@ void GetOptions(int argc, char *argv[])
}
else if(!strcmp(argv[i] + 1, "onelab")) {
i++;
if(argv[i])
Msg::InitializeOnelab("GmshOnelab", argv[i++]);
if(argv[i] && argv[i + 1]){
Msg::InitializeOnelab(argv[i], argv[i + 1]);
i += 2;
}
else
Msg::Fatal("Missing string");
Msg::Fatal("Missing client name and/or address of OneLab server");
}
else if(!strcmp(argv[i] + 1, "socket")) {
i++;
......
......@@ -127,8 +127,8 @@ bool onelab::localNetworkClient::run()
else if(action == "compute")
command += " " + modelName + " " + computeCommand;
}
// append "-onelab" command
command += " " + _socketSwitch + " ";
// append "-onelab" command line argument
command += " " + _socketSwitch + " \"" + getName() + "\"";
}
else{
Msg::Info("Listening on socket '%s'", sockname.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment