Added BlackoilWellModel::getLocalNonshutWells to reduce code duplication.

This commit is contained in:
Markus Blatt
2020-10-09 15:09:28 +02:00
parent 406feea8e7
commit ba1bc7c23c
2 changed files with 18 additions and 13 deletions

View File

@@ -331,6 +331,12 @@ namespace Opm {
const std::string &msg,
Opm::DeferredLogger& deferred_logger) const;
/// \brief Get the wells of our partition that are not shut.
/// \param timeStepIdx The index of the time step.
/// \param[out] globalNumWells the number of wells globally.
std::vector< Well > getLocalNonshutWells(const int timeStepIdx,
int& globalNumWells) const;
// compute the well fluxes and assemble them in to the reservoir equations as source terms
// and in the well equations.
void assemble(const int iterationIdx,