From b297937c691dab137db16aab6001452f598ec187 Mon Sep 17 00:00:00 2001 From: ribes Date: Thu, 12 May 2011 15:42:44 +0000 Subject: [PATCH] Adding SLURM --- src/genericgui/JM_EditSalomeResource.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/genericgui/JM_EditSalomeResource.cxx b/src/genericgui/JM_EditSalomeResource.cxx index 38b1251..1f961fd 100644 --- a/src/genericgui/JM_EditSalomeResource.cxx +++ b/src/genericgui/JM_EditSalomeResource.cxx @@ -121,6 +121,7 @@ JM::EditSalomeResource::EditSalomeResource(QWidget *parent, BL::SALOMEServices * _batch_line->addItem("sge"); _batch_line->addItem("ssh"); _batch_line->addItem("ccc"); + _batch_line->addItem("slurm"); _batch_line->addItem("ll"); _batch_line->setCurrentIndex(-1); @@ -130,7 +131,7 @@ JM::EditSalomeResource::EditSalomeResource(QWidget *parent, BL::SALOMEServices * _mpiImpl_line->addItem("mpich1"); _mpiImpl_line->addItem("mpich2"); _mpiImpl_line->addItem("openmpi"); - _mpiImpl_line->addItem("slurm"); + _mpiImpl_line->addItem("slurmmpi"); _mpiImpl_line->addItem("prun"); _mpiImpl_line->setCurrentIndex(-1); @@ -215,8 +216,10 @@ JM::EditSalomeResource::get_infos() _batch_line->setCurrentIndex(3); else if (batch == "ccc") _batch_line->setCurrentIndex(4); - else if (batch == "ll") + else if (batch == "slurm") _batch_line->setCurrentIndex(5); + else if (batch == "ll") + _batch_line->setCurrentIndex(6); else _batch_line->setCurrentIndex(-1); @@ -229,7 +232,7 @@ JM::EditSalomeResource::get_infos() _mpiImpl_line->setCurrentIndex(2); else if (mpiImpl == "openmpi") _mpiImpl_line->setCurrentIndex(3); - else if (mpiImpl == "slurm") + else if (mpiImpl == "slurmmpi") _mpiImpl_line->setCurrentIndex(4); else if (mpiImpl == "prun") _mpiImpl_line->setCurrentIndex(5); -- 2.39.2