From 9d2a42ce016b242e04f0c0b4a0970854d5d27e18 Mon Sep 17 00:00:00 2001 From: secher Date: Tue, 16 Jun 2009 10:16:24 +0000 Subject: [PATCH] debug MPI Containers --- src/Container/SALOME_ContainerManager.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index 989ca2c4b..5deda9075 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -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()); -- 2.39.2