Skip to content

Commit

Permalink
fmk - changes so Pelicun3 and Pelicun work in input file, invoking in…
Browse files Browse the repository at this point in the history
…putAppData on DL
  • Loading branch information
fmckenna committed Feb 7, 2024
1 parent e5a84b4 commit 0b98848
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions LossModel/LossModelSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
LossModelSelection::LossModelSelection(

QWidget *parent)
: SimCenterAppSelection(QString("Loss Model"), QString("LossModel"),parent)
: SimCenterAppSelection(QString("Loss Model"), QString("DL"),parent)
{
thePelicunWidget = new PelicunLossModel();
this->addComponent(QString("Pelicun"), QString("Pelicun"), thePelicunWidget);
this->addComponent(QString("Pelicun3"), QString("Pelicun3"), thePelicunWidget, QString("Pelicun"));
}

LossModelSelection::~LossModelSelection()
Expand Down
9 changes: 8 additions & 1 deletion WorkflowAppPBE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ WorkflowAppPBE::inputFromJSON(QJsonObject &jsonObject)
if (thePrfMethodSelection->inputAppDataFromJSON(theApplicationObject) == false)
this->errorMessage("PBE: failed to read PRF application");

if (theDLModelSelection->inputAppDataFromJSON(theApplicationObject) == false)
this->errorMessage("PBE: failed to read DL application");

} else
return false;

Expand All @@ -479,7 +482,10 @@ WorkflowAppPBE::inputFromJSON(QJsonObject &jsonObject)

if (thePrfMethodSelection->inputFromJSON(jsonObject) == false)
this->errorMessage("PBE: failed to read PRF Method data");


if (theDLModelSelection->inputFromJSON(jsonObject) == false)
this->errorMessage("PBE: failed to read PRF Method data");
/*
if (jsonObject.contains("DL")) {
QJsonObject jsonObjLossModel = jsonObject["DL"].toObject();
if (theDLModelSelection->inputFromJSON(jsonObjLossModel) == false)
Expand All @@ -488,6 +494,7 @@ WorkflowAppPBE::inputFromJSON(QJsonObject &jsonObject)
this->errorMessage("WARNING: failed to find Damage and Loss Model");
return false;
}
*/

this->runComplete();

Expand Down

0 comments on commit 0b98848

Please sign in to comment.