Skip to content

Commit

Permalink
Merge pull request #128 from JustinBonus/master
Browse files Browse the repository at this point in the history
Add NOAA Digital Coast Web-App Tool (WBS 1.1.1.3.1)
  • Loading branch information
fmckenna authored Oct 5, 2024
2 parents 1cc7863 + 3503cec commit ee3b9a3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion EDP/HydroEDP_Selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ HydroEDP_Selection::HydroEDP_Selection(QWidget *parent)
theStackedWidget->addWidget(theStandardHydroEDPs);
// theStackedWidget->addWidget(theStandardTsunamiEDPs);
// theStackedWidget->addWidget(theStandardStormSurgeEDPs);
theStackedWidget->addWidget(theUserDefinedEDPs);

SurrogateEDP * theSurrogateEDPs_tmp = SurrogateEDP::getInstance();
theSurrogateEDPs = theSurrogateEDPs_tmp;
Expand All @@ -145,6 +144,7 @@ HydroEDP_Selection::HydroEDP_Selection(QWidget *parent)
edpSelection->setCurrentIndex(4);
});
theStackedWidget->addWidget(theSurrogateEDPs);
theStackedWidget->addWidget(theUserDefinedEDPs);


layout->addWidget(theStackedWidget);
Expand Down
59 changes: 29 additions & 30 deletions WorkflowAppHydroUQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ WorkflowAppHydroUQ::WorkflowAppHydroUQ(RemoteService *theService, QWidget *paren
theEventSelection = new HydroEventSelection(theRVs, theService);
// theEventSelection = new HydroEventSelection(theRVs, theGI);
theAnalysisSelection = new FEA_Selection(true);
theUQ_Selection = new UQ_EngineSelection(ForwardReliabilitySensitivity); // ForwardReliabilitySensitivitySurrogate
// theUQ_Selection = new UQ_EngineSelection(ForwardReliabilitySensitivity); // ForwardReliabilitySensitivitySurrogate
theUQ_Selection = new UQ_EngineSelection(ForwardReliabilitySensitivitySurrogate); // ForwardReliabilitySensitivitySurrogate
theEDP_Selection = new HydroEDP_Selection(theRVs);
theResults = theUQ_Selection->getResults();
Expand Down Expand Up @@ -267,8 +267,8 @@ constexpr bool DEV_MODE = true; // Set to true for development mode, false for p

// Quickly enable/disable tools here for compile-time
constexpr bool USE_CLAYMORE_TOOL = true;
constexpr bool USE_TAICHI_TOOL = false;
constexpr bool USE_NOAA_TOOL = false;
constexpr bool USE_TAICHI_TOOL = true;
constexpr bool USE_NOAA_TOOL = true;
constexpr bool USE_CELERIS_TOOL = false;
constexpr bool USE_WEBGPU_TOOL = false;

Expand Down Expand Up @@ -322,36 +322,35 @@ WorkflowAppHydroUQ::setMainWindow(MainWindowWorkflowApp* window) {
// currentTool = miniMPMTool; // TODO: Make this more dynamics / use a better interface
}

// if constexpr (USE_TAICHI_TOOL) {
// queues.clear(); queues << "rtx" << "rtx-dev"; // These are later changed to "normal" and "fast" in the tool based on number of cores/processors? Should fix this
// TaichiEvent *miniTaichi = new TaichiEvent();
// appName = "simcenter-taichi-frontera"; // Frontera
// QString appVersion = "1.0.0";
// QString machine = "frontera";
// SC_RemoteAppTool *miniTaichiTool = new SC_RemoteAppTool(appName, appVersion, machine, queues, theRemoteService, miniTaichi, theToolDialog);
// theToolDialog->addTool(miniTaichiTool, "General Event (Taichi)");
// QAction *showTaichi = toolsMenu->addAction("General Event (&Taichi)");
// connect(showTaichi, &QAction::triggered, this,[this, theDialog=theToolDialog, miniT = miniTaichiTool] {
// theDialog->showTool("General Event (Taichi)");
// });
if constexpr (USE_TAICHI_TOOL) {
queues.clear(); queues << "rtx" << "rtx-dev"; // These are later changed to "normal" and "fast" in the tool based on number of cores/processors? Should fix this
TaichiEvent *miniTaichi = new TaichiEvent();
appName = "simcenter-taichi-frontera"; // Frontera
QString appVersion = "1.0.0";
QString machine = "frontera";
SC_RemoteAppTool *miniTaichiTool = new SC_RemoteAppTool(appName, appVersion, machine, queues, theRemoteService, miniTaichi, theToolDialog);
theToolDialog->addTool(miniTaichiTool, "General Event (Taichi)");
QAction *showTaichi = toolsMenu->addAction("General Event (&Taichi)");
connect(showTaichi, &QAction::triggered, this,[this, theDialog=theToolDialog, miniT = miniTaichiTool] {
theDialog->showTool("General Event (Taichi)");
});

// }
}


// if constexpr (USE_NOAA_TOOL) {
// DigitalCoast *miniDC = new DigitalCoast();
// QString appNameDC = "simcenter-noaa-dc-frontera"; // Frontera
// QString systemNameDC = "frontera";
// QString appVersion = "1.0.0";
// QString machine = "frontera";
// QList<QString> queuesDC; queuesDC << "rtx" << "rtx-dev"; // These are later changed to "normal" and "fast" in the tool based on number of cores/processors? Should fix this
// SC_RemoteAppTool *miniDCTool = new SC_RemoteAppTool(appNameDC, appVersion, machine, queuesDC, theRemoteService, miniDC, theToolDialog);
// theToolDialog->addTool(miniDCTool, "Sea-Level Rise (NOAA Digital Coast)");
// QAction *showDC = toolsMenu->addAction("Sea-Level Rise (&NOAA Digital Coast)");
// connect(showDC, &QAction::triggered, this,[this, theDialog=theToolDialog, miniD = miniDCTool] {
// theDialog->showTool("Sea-Level Rise (NOAA Digital Coast)");
// });
// }
if constexpr (USE_NOAA_TOOL) {
DigitalCoast *miniDC = new DigitalCoast();
QString appNameDC = "noaa-digital-coast-localhost"; // Frontera
QString appVersion = "1.0.0";
QString machine = "localhost";
queues.clear(); queues << "chromium"; // These are later changed to "normal" and "fast" in the tool based on number of cores/processors? Should fix this
SC_RemoteAppTool *miniDCTool = new SC_RemoteAppTool(appNameDC, appVersion, machine, queues, theRemoteService, miniDC, theToolDialog);
theToolDialog->addTool(miniDCTool, "Sea-Level Rise (NOAA Digital Coast)");
QAction *showDC = toolsMenu->addAction("Sea-Level Rise (&NOAA Digital Coast)");
connect(showDC, &QAction::triggered, this,[this, theDialog=theToolDialog, miniD = miniDCTool] {
theDialog->showTool("Sea-Level Rise (NOAA Digital Coast)");
});
}

// if constexpr (USE_CELERIS_TOOL) {
// Celeris *miniCeleris = new Celeris();
Expand Down

0 comments on commit ee3b9a3

Please sign in to comment.