]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
debug MPI Containers
authorsecher <secher>
Tue, 16 Jun 2009 10:16:24 +0000 (10:16 +0000)
committersecher <secher>
Tue, 16 Jun 2009 10:16:24 +0000 (10:16 +0000)
src/Container/SALOME_ContainerManager.cxx

index 989ca2c4bf858d7abdaf58db4146931bb5af520a..5deda90755d036b75e35a05a49ec454fe0775ca4 100644 (file)
@@ -273,7 +273,11 @@ SALOME_ContainerManager::StartContainer(const Engines::MachineParameters& params
   //check if an entry exists in Naming service
   //if params.mode == "start" or "" shutdown the existing container before launching a new one with that name
   //if params.mode == "getorstart" or "get" use the existing container
-  containerNameInNS = _NS->BuildContainerNameForNS(params,theMachine.c_str());
+  if(params.isMPI)
+    // A parallel container register on zero node in NS
+    containerNameInNS = _NS->BuildContainerNameForNS(params,GetMPIZeroNode(theMachine).c_str());
+  else
+    containerNameInNS = _NS->BuildContainerNameForNS(params,theMachine.c_str());
 
   SCRUTE(containerNameInNS);
   CORBA::Object_var obj = _NS->Resolve(containerNameInNS.c_str());