From 89955d77cb2c68c2897b4c8ab379ac2b286b2d1a Mon Sep 17 00:00:00 2001 From: ribes Date: Wed, 25 Mar 2009 10:23:30 +0000 Subject: [PATCH] =?utf8?q?Enregistrement=20des=20composants=20sequentiels?= =?utf8?q?=20et=20parall=C3=83=C2=A8les=20dans=20le=20m=C3=83=C2=AAme=20no?= =?utf8?q?m=20dans=20le=20naming=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/ParallelContainer/SALOME_ParallelContainer_i.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ParallelContainer/SALOME_ParallelContainer_i.cxx b/src/ParallelContainer/SALOME_ParallelContainer_i.cxx index 00b219a3d..341e09a9e 100644 --- a/src/ParallelContainer/SALOME_ParallelContainer_i.cxx +++ b/src/ParallelContainer/SALOME_ParallelContainer_i.cxx @@ -101,6 +101,11 @@ Engines_Parallel_Container_i::Engines_Parallel_Container_i (CORBA::ORB_ptr orb, _NS->init_orb(_orb); _containerName = _NS->BuildContainerNameForNS(containerName.c_str(), _hostname.c_str()); + // Ajout du numero de noeud + char node_number[12]; + sprintf(node_number, "%d", getMyRank()); + _containerName = _containerName + node_number; + // Init Python container part CORBA::String_var sior = _orb->object_to_string(container_node); std::string myCommand="pyCont = SALOME_Container.SALOME_Container_i('"; @@ -937,7 +942,7 @@ Engines_Parallel_Container_i::create_paco_component_node_instance(const char* co char aNumI2[12]; sprintf(aNumI2 , "%d" , getMyRank()) ; string instanceName = aCompName + "_inst_" + aNumI + "_work_node_" + aNumI2; - string component_registerName = _containerName + aNumI2 + "/" + instanceName; + string component_registerName = _containerName + "/" + instanceName; // --- Instanciate work node PortableServer::ObjectId *id ; //not owner, do not delete (nore use var) -- 2.39.2