Move parallelWellInfo()

This commit is contained in:
Joakim Hove 2021-05-20 11:02:00 +02:00
parent 40e8632f24
commit 0f8dec5224
4 changed files with 9 additions and 7 deletions

View File

@ -70,11 +70,6 @@ void WellState::init(const std::vector<double>& cellPressures,
}
const ParallelWellInfo&
WellState::parallelWellInfo(std::size_t well_index) const
{
return *parallel_well_info_[well_index];
}
void WellState::shutWell(int well_index)

View File

@ -98,8 +98,6 @@ public:
std::vector<double>& perfPress(const std::string& wname) { return perfpress_[wname]; }
const std::vector<double>& perfPress(const std::string& wname) const { return perfpress_[wname]; }
const ParallelWellInfo& parallelWellInfo(std::size_t well_index) const;
/// The number of phases present.

View File

@ -1061,6 +1061,12 @@ void WellStateFullyImplicitBlackoil::resetConnectionTransFactors(const int well_
}
}
const ParallelWellInfo&
WellStateFullyImplicitBlackoil::parallelWellInfo(std::size_t well_index) const
{
return *parallel_well_info_[well_index];
}
template void WellStateFullyImplicitBlackoil::updateGlobalIsGrup<ParallelWellInfo::Communication>(const ParallelWellInfo::Communication& comm);
template void WellStateFullyImplicitBlackoil::communicateGroupRates<ParallelWellInfo::Communication>(const ParallelWellInfo::Communication& comm);
} // namespace Opm

View File

@ -79,6 +79,9 @@ public:
return wellMap_.size();
}
const ParallelWellInfo& parallelWellInfo(std::size_t well_index) const;
/// Allocate and initialize if wells is non-null. Also tries
/// to give useful initial values to the bhp(), wellRates()