Skip to content

Commit

Permalink
waterTableList.clear
Browse files Browse the repository at this point in the history
  • Loading branch information
lauracosta committed May 22, 2024
1 parent db4eec6 commit 11a5ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions project/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4598,7 +4598,7 @@ bool Project::waterTableImportDepths(QString csvDepths)
return true;
}

bool Project::computeSingleWell(QString idWell, int indexWell, bool showInfo)
bool Project::computeSingleWell(QString idWell, int indexWell)
{
bool isMeteoGridLoaded;
QDate firstMeteoDate = wellPoints[indexWell].getFirstDate().addDays(-730); // necessari 24 mesi di dati meteo precedenti il primo dato di falda
Expand Down Expand Up @@ -4633,10 +4633,6 @@ bool Project::computeSingleWell(QString idWell, int indexWell, bool showInfo)
waterTable.computeWaterTable(wellPoints[indexWell], maxNrDays);
waterTable.viewWaterTableSeries(); // prepare series to show
waterTableList.push_back(waterTable);
if(showInfo)
{
showSingleWell(waterTable, idWell);
}
return true;
}

Expand All @@ -4646,6 +4642,7 @@ void Project::showSingleWell(WaterTable waterTable, QString idWell)
dialogResult->show();
WaterTableWidget* chartResult = new WaterTableWidget(idWell, waterTable.getMyDates(), waterTable.getMyHindcastSeries(), waterTable.getMyInterpolateSeries(), waterTable.getDepths());
chartResult->show();
return;
}

bool Project::assignNearestMeteoPoint(bool isMeteoGridLoaded, double wellUtmX, double wellUtmY, QDate firstMeteoDate, Crit3DMeteoPoint* linkedMeteoPoint)
Expand Down
2 changes: 1 addition & 1 deletion project/project.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@

bool waterTableImportLocation(QString csvFileName);
bool waterTableImportDepths(QString csvDepths);
bool computeSingleWell(QString idWell, int indexWell, bool showInfo);
bool computeSingleWell(QString idWell, int indexWell);
void showSingleWell(WaterTable waterTable, QString idWell);
bool assignNearestMeteoPoint(bool isMeteoGridLoaded, double wellUtmX, double wellUtmY, QDate firstMeteoDate, Crit3DMeteoPoint* linkedMeteoPoint);
bool assignWTMeteoData(Crit3DMeteoPoint* linkedMeteoPoint, QDate firstMeteoDate);
Expand Down

0 comments on commit 11a5ccd

Please sign in to comment.