return _wckey;
}
+void
+BL::Job::setExtraParams(const std::string & extra_params)
+{
+ _extra_params = extra_params;
+}
+
+const std::string &
+BL::Job::getExtraParams()
+{
+ return _extra_params;
+}
+
void
BL::Job::setLoadLevelerJobType(const std::string & jobtype)
{
void setWCKey(const std::string & wckey);
const std::string & getWCKey();
+ void setExtraParams(const std::string & extra_params);
+ const std::string & getExtraParams();
+
void setLoadLevelerJobType(const std::string & jobtype);
std::string & getLoadLevelerJobType();
std::string _resource_choosed;
std::string _batch_queue;
std::string _wckey;
+ std::string _extra_params;
std::string _ll_jobtype;
int _salome_launcher_id;
job_parameters->queue = CORBA::string_dup(job->getBatchQueue().c_str());
job_parameters->exclusive = cpp_batch_params.exclusive;
job_parameters->wckey = CORBA::string_dup(job->getWCKey().c_str());
+ job_parameters->extra_params = CORBA::string_dup(job->getExtraParams().c_str());
// Memory
switch (cpp_batch_params.mem_req_type)
job_return->setEnvFile(job_parameters->env_file.in());
job_return->setBatchQueue(job_parameters->queue.in());
job_return->setWCKey(job_parameters->wckey.in());
+ job_return->setExtraParams(job_parameters->extra_params.in());
BL::Job::FilesParam param;
param.result_directory = job_parameters->result_directory.in();
<ui version="4.0">
<class>AdvancedParametersWizardPage</class>
<widget class="QWizardPage" name="AdvancedParametersWizardPage">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>589</width>
+ <height>441</height>
+ </rect>
+ </property>
<property name="title">
<string>Advanced Parameters</string>
</property>
- <layout class="QFormLayout" name="formLayout">
- <item row="0" column="0">
- <widget class="QLabel" name="label">
- <property name="text">
- <string>Workload Characterization Key (wckey):</string>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <layout class="QFormLayout" name="formLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Workload Characterization Key (wckey):</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLineEdit" name="line_wckey"/>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="groupBox">
+ <property name="title">
+ <string>Extra parameters</string>
</property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string><html>
+<head>
+<style type="text/css">
+.code{font-family: monospace}
+</style>
+</head>
+<body><p align="justify">The following text will be added &quot;as is&quot; in the job submission file. It can be used to specify parameters that are not available through the JobManager interface or to define environment variables for the job.</p>
+<p>Example:</p>
+<div class="code">#MSUB -@ jonathan.xxx@cea.fr:begin,end<br/>
+export OMPI_MCA_orte_process_binding=none<br/>
+...</div></body></html></string>
+ </property>
+ <property name="wordWrap">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPlainTextEdit" name="text_extra_params">
+ <property name="font">
+ <font>
+ <family>Monospace</family>
+ </font>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
</item>
- <item row="0" column="1">
- <widget class="QLineEdit" name="line_wckey"/>
- </item>
</layout>
</widget>
<resources/>
setField("batch_queue", QString(job->getBatchQueue().c_str()));
setField("ll_jobtype", QString(job->getLoadLevelerJobType().c_str()));
setField("wckey", QString(job->getWCKey().c_str()));
+ setField("extra_params", QString(job->getExtraParams().c_str()));
}
}
QString f_wckey = field("wckey").toString();
wckey = f_wckey.trimmed().toUtf8().constData();
+ // Extra params
+ QString f_extra_params = field("extra_params").toString();
+ extra_params = f_extra_params.trimmed().toUtf8().constData();
+
start_job = field("start_job").toBool();
}
}
{
ui->setupUi(this);
registerField("wckey", ui->line_wckey);
+ registerField("extra_params", ui->text_extra_params, "plainText", "textChanged()");
};
AdvancedParametersPage::~AdvancedParametersPage()
std::string resource_choosed;
std::string batch_queue;
std::string wckey;
+ std::string extra_params;
bool start_job;
int dump_yacs_state;
new_job->setBatchQueue(wizard.batch_queue);
new_job->setLoadLevelerJobType(wizard.ll_jobtype);
new_job->setWCKey(wizard.wckey);
+ new_job->setExtraParams(wizard.extra_params);
// End
addJobToLauncher(wizard.job_name);