Move wellMap() and numWells() accessors

This commit is contained in:
Joakim Hove
2021-05-20 10:41:01 +02:00
parent 6ac9e722fc
commit 7695abfe25
3 changed files with 12 additions and 12 deletions

View File

@@ -125,8 +125,8 @@ bool WellState::wellIsOwned(std::size_t well_index,
bool WellState::wellIsOwned(const std::string& wellName) const
{
const auto& it = wellMap().find( wellName );
if (it == wellMap().end()) {
const auto& it = this->wellMap_.find( wellName );
if (it == this->wellMap_.end()) {
OPM_THROW(std::logic_error, "Could not find well " << wellName << " in well map");
}
const int well_index = it->second[0];