]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Patch for new version of LIBBATCH
authorribes <ribes>
Fri, 1 Oct 2010 14:17:48 +0000 (14:17 +0000)
committerribes <ribes>
Fri, 1 Oct 2010 14:17:48 +0000 (14:17 +0000)
src/Launcher/Launcher.cxx

index f40931743ab9e44befac10e317d2e60b91b0a004..3211ce253da2fff406c2b8f1223d7e90f5f26106 100644 (file)
@@ -427,8 +427,8 @@ Launcher_cpp::FactoryBatchManager(ParserResourcesType& params)
     throw LauncherException("Cannot find batch manager factory");
   }
   LAUNCHER_MESSAGE("Instanciation of batch manager of type: " << bmType);
-  Batch::BatchManager_eClient * batch_client = (*fact)(hostname.c_str(), protocol, mpi.c_str(), nb_proc_per_node);
-  batch_client->setUsername(params.UserName);
+  Batch::BatchManager_eClient * batch_client = (*fact)(hostname.c_str(), params.UserName.c_str(),
+                                                       protocol, mpi.c_str(), nb_proc_per_node);
   return batch_client;
 }