]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
MPI nodes register two times
authorribes <ribes>
Wed, 29 Apr 2009 13:33:38 +0000 (13:33 +0000)
committerribes <ribes>
Wed, 29 Apr 2009 13:33:38 +0000 (13:33 +0000)
src/ParallelContainer/SALOME_ParallelContainerNodeMpi.cxx

index 5dd6710d053dd14481473b745ea883bf591f5d41..6ac427213f21cdd480c20ae681dc889e430c2201 100644 (file)
@@ -207,10 +207,17 @@ int main(int argc, char* argv[])
     char buffer [5];
     snprintf(buffer, 5, "%d", myid);
     node_name = node_name + buffer;
+
+    // We register nodes in two different parts
+    // In the real machine name and in the proxy machine
     string _containerName = ns->BuildContainerNameForNS(node_name.c_str(),
                                                        hostname.c_str());
-    cerr << "---------" << _containerName << "----------" << endl;
+    string _proxymachine_containerName = ns->BuildContainerNameForNS(node_name.c_str(),
+                                                                    proxy_hostname.c_str());
+    cerr << "Register container node : " << _containerName << endl;
+    cerr << "Register container node : " << _proxymachine_containerName << endl;
     ns->Register(obj, _containerName.c_str());
+    ns->Register(obj, _proxymachine_containerName.c_str());
     pman->activate();
     orb->run();
     PyGILState_Ensure();