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

onelab

parent 933594db
Branches
Tags
No related merge requests found
...@@ -75,8 +75,23 @@ bool onelab::localNetworkClient::run(const std::string &what) ...@@ -75,8 +75,23 @@ bool onelab::localNetworkClient::run(const std::string &what)
_pid = 0; _pid = 0;
onelabGmshServer *server = new onelabGmshServer(this); onelabGmshServer *server = new onelabGmshServer(this);
std::string sockname = CTX::instance()->solver.socketName; std::string sockname;
std::string command = _commandLine + " " + what + " -onelab " + sockname; if(!strstr(CTX::instance()->solver.socketName.c_str(), ":")){
// Unix socket
std::ostringstream tmp;
tmp << CTX::instance()->homeDir << CTX::instance()->solver.socketName;
sockname = FixWindowsPath(tmp.str());
}
else{
// TCP/IP socket
sockname = CTX::instance()->solver.socketName;
// if only the port is given, prepend the host name
if(sockname.size() && sockname[0] == ':')
sockname = GetHostName() + sockname;
}
std::string prog = FixWindowsPath(_commandLine);
std::string command = prog + " " + what + " -onelab " + sockname;
#if !defined(WIN32) #if !defined(WIN32)
command += " &"; command += " &";
#endif #endif
...@@ -200,6 +215,16 @@ bool onelab::localNetworkClient::run(const std::string &what) ...@@ -200,6 +215,16 @@ bool onelab::localNetworkClient::run(const std::string &what)
ParseString(message); ParseString(message);
drawContext::global()->draw(); drawContext::global()->draw();
break; break;
/* FIXME need to change PViewDataRemote to work without ConnectionManager
case GmshSocket::GMSH_VERTEX_ARRAY:
{
int n = PView::list.size();
PView::fillVertexArray(this, length, &message[0], swap);
FlGui::instance()->updateViews(n != (int)PView::list.size());
drawContext::global()->draw();
}
break;
*/
default: default:
Msg::Warning("Received unknown message type (%d)", type); Msg::Warning("Received unknown message type (%d)", type);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment