Skip to content

Commit 9df50c8

Browse files
committed
fmk - adding ability to save results in remote rWhale
1 parent 43bd5ac commit 9df50c8

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Workflow/EXECUTION/RemoteApplication.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,16 @@ RemoteApplication::RemoteApplication(QString name, RemoteService *theService, QW
112112
QString appName = QCoreApplication::applicationName();
113113
if (appName == "R2D"){
114114
numRow++;
115-
layout->addWidget(new QLabel("#Buildings Per Taask:"), numRow, 0);
115+
layout->addWidget(new QLabel("# Buildings Per Task:"), numRow, 0);
116116
buildingsPerTask=new QLineEdit("10");
117117
buildingsPerTask->setToolTip("Number of buildings per task when runnig in parallel");
118118
layout->addWidget(buildingsPerTask, numRow, 1);
119+
120+
numRow++;
121+
layout->addWidget(new QLabel("Save Inter. Results:"), numRow, 0);
122+
saveResultsBox=new QCheckBox(); saveResultsBox->setChecked(false);
123+
saveResultsBox->setToolTip("Save Intermediary results to compressed folder. You typically do not want this.");
124+
layout->addWidget(saveResultsBox, numRow, 1);
119125
}
120126

121127
numRow++;
@@ -431,6 +437,7 @@ RemoteApplication::uploadDirReturn(bool result)
431437
int numBldg = buildingsPerTask->text().toInt();
432438
if (numBldg != 0 ) {
433439
parameters["buildingsPerTask"]=QString::number(numBldg);
440+
parameters["saveResults"]=saveResultsBox->isChecked();
434441
}
435442
job["parameters"]=parameters;
436443

Workflow/EXECUTION/RemoteApplication.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
4646
#include <SimCenterWidget.h>
4747
#include <Application.h>
4848
#include <QPushButton>
49+
#include <QCheckBox>
4950
#include <QJsonObject>
5051
#include <QMap>
5152

@@ -94,6 +95,7 @@ public slots:
9495
QLineEdit *numProcessorsLineEdit;
9596
QLineEdit *runtimeLineEdit;
9697
QLineEdit *buildingsPerTask;
98+
QCheckBox *saveResultsBox;
9799

98100
// QLineEdit *appLineEdit;
99101

0 commit comments

Comments
 (0)