Add size() method to the Schedule class

This commit is contained in:
Joakim Hove 2018-10-12 08:25:40 +02:00
parent 8c8290f614
commit 42d7587e1b
2 changed files with 7 additions and 1 deletions

View File

@ -127,7 +127,7 @@ namespace Opm
active. Will scan through all wells and all timesteps.
*/
void filterConnections(const EclipseGrid& grid);
size_t size() const;
private:
TimeMap m_timeMap;
OrderedMap< Well > m_wells;

View File

@ -1883,5 +1883,11 @@ namespace Opm {
const auto& ptr = this->wtest_config.get(timeStep);
return *ptr;
}
size_t Schedule::size() const {
return this->m_timeMap.size();
}
}