From: ribes Date: Wed, 28 Jul 2010 14:05:26 +0000 (+0000) Subject: - Adaptation of Launcher for new LIBBATCH X-Git-Tag: V5_1_5a1~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=21274bc526ed36838bab532f9474383da847465c;p=modules%2Fkernel.git - Adaptation of Launcher for new LIBBATCH --- diff --git a/src/Launcher/Launcher.cxx b/src/Launcher/Launcher.cxx index e5d8e9dc8..03c74cdab 100644 --- a/src/Launcher/Launcher.cxx +++ b/src/Launcher/Launcher.cxx @@ -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; } //----------------------------------------------------------