Support Retrieving Non-Zero Restart Vector Occurrence
Needed to load connection information for analytic aquifers (xCAQ).
This commit is contained in:
@@ -47,6 +47,8 @@ public:
|
||||
std::size_t simStep() const;
|
||||
int reportStep() const;
|
||||
|
||||
int occurrenceCount(const std::string& vector) const;
|
||||
|
||||
template <typename ElmType>
|
||||
bool hasKeyword(const std::string& vector) const;
|
||||
|
||||
|
||||
@@ -96,6 +96,11 @@ public:
|
||||
return this->report_step_;
|
||||
}
|
||||
|
||||
int occurrenceCount(const std::string& vector) const
|
||||
{
|
||||
return this->rst_file_->occurrence_count(vector, this->report_step_);
|
||||
}
|
||||
|
||||
template <typename ElmType>
|
||||
bool hasKeyword(const std::string& vector) const
|
||||
{
|
||||
@@ -225,6 +230,11 @@ int Opm::EclIO::RestartFileView::reportStep() const
|
||||
return this->pImpl_->reportStep();
|
||||
}
|
||||
|
||||
int Opm::EclIO::RestartFileView::occurrenceCount(const std::string& vector) const
|
||||
{
|
||||
return this->pImpl_->occurrenceCount(vector);
|
||||
}
|
||||
|
||||
const std::vector<int>& Opm::EclIO::RestartFileView::intehead() const
|
||||
{
|
||||
return this->pImpl_->intehead();
|
||||
|
||||
Reference in New Issue
Block a user