Salome HOME
- Adaptation of Launcher for new LIBBATCH
[modules/kernel.git] / src / Launcher / Launcher.cxx
index e5d8e9dc8b5499dd4a772b332f57ead10fe5e6aa..03c74cdab8d4f70295bfc977ede133cb62c6b70f 100644 (file)
@@ -421,7 +421,9 @@ Launcher_cpp::FactoryBatchManager(ParserResourcesType& params)
     throw LauncherException("Cannot find batch manager factory");
   }
   LAUNCHER_MESSAGE("Instanciation of batch manager of type: " << bmType);
-  return (*fact)(hostname.c_str(), protocol, mpi.c_str(), nb_proc_per_node);
+  Batch::BatchManager_eClient * batch_client = (*fact)(hostname.c_str(), protocol, mpi.c_str(), nb_proc_per_node);
+  batch_client->setUsername(params.UserName);
+  return batch_client;
 }
 
 //----------------------------------------------------------