]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
just a little modification
authorsecher <secher>
Mon, 31 Aug 2009 12:48:18 +0000 (12:48 +0000)
committersecher <secher>
Mon, 31 Aug 2009 12:48:18 +0000 (12:48 +0000)
src/Container/SALOME_ContainerManager.cxx

index 84900334dcd51f2e1878575fa21389a67058e9b8..f0a5a04a97600ce625469738c23eb7cc5608ce57 100644 (file)
@@ -83,6 +83,7 @@ SALOME_ContainerManager::SALOME_ContainerManager(CORBA::ORB_ptr orb, PortableSer
   _isAppliSalomeDefined = (getenv("APPLI") != 0);
 
 #ifdef HAVE_MPI2
+#ifdef WITHOPENMPI
   if( getenv("OMPI_URI_FILE") != NULL ){
     system("killall ompi-server");
     string command;
@@ -92,6 +93,7 @@ SALOME_ContainerManager::SALOME_ContainerManager(CORBA::ORB_ptr orb, PortableSer
     if(status!=0)
       throw SALOME_Exception("Error when launching ompi-server");
   }
+#endif
 #endif
 
   MESSAGE("constructor end");
@@ -107,9 +109,11 @@ SALOME_ContainerManager::~SALOME_ContainerManager()
 {
   MESSAGE("destructor");
 #ifdef HAVE_MPI2
+#ifdef WITHOPENMPI
   if( getenv("OMPI_URI_FILE") != NULL )
     system("killall ompi-server");
 #endif
+#endif
 }
 
 //=============================================================================