mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#3862 Reload case. Reset time step filter during reload to fix issue
This commit is contained in:
parent
0e910e7391
commit
d202e430d2
@ -242,6 +242,7 @@ void RimEclipseResultCase::reloadEclipseGridFile()
|
||||
{
|
||||
m_gridAndWellDataIsReadFromFile = false;
|
||||
m_activeCellInfoIsReadFromFile = false;
|
||||
m_timeStepFilter->reset();
|
||||
setReservoirData(nullptr);
|
||||
openReserviorCase();
|
||||
}
|
||||
|
@ -181,6 +181,21 @@ bool RimTimeStepFilter::updateFilteredTimeStepsFromUi()
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimTimeStepFilter::reset()
|
||||
{
|
||||
m_filterType = TS_ALL;
|
||||
m_filteredTimeSteps.v().clear();
|
||||
m_filteredTimeStepsUi.v().clear();
|
||||
m_firstTimeStep = 0;
|
||||
m_lastTimeStep = 0;
|
||||
m_interval = 1;
|
||||
m_dateFormat = QString("yyyy-MM-dd");
|
||||
m_timeStepNamesFromFile.v().clear();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -52,6 +52,9 @@ public:
|
||||
void setTimeStepsFromFile(const std::vector<std::pair<QString, QDateTime>>& timeSteps);
|
||||
std::vector<size_t> filteredTimeSteps() const;
|
||||
bool updateFilteredTimeStepsFromUi();
|
||||
|
||||
void reset();
|
||||
|
||||
private:
|
||||
std::vector<std::pair<QString, QDateTime>> allTimeSteps() const;
|
||||
std::vector<int> filteredTimeStepIndicesFromUi() const;
|
||||
|
Loading…
Reference in New Issue
Block a user