Use robustSolveBhpAtThpLimitProd() for potentials and initialization.

This commit is contained in:
Atgeirr Flø Rasmussen
2019-10-03 16:42:56 +02:00
committed by Tor Harald Sandve
parent 7581275b03
commit 2b9f5fb4fb
2 changed files with 37 additions and 182 deletions

View File

@@ -361,10 +361,7 @@ namespace Opm
Opm::DeferredLogger& deferred_logger);
std::vector<double> computeWellPotentialWithTHP(const Simulator& ebosSimulator,
const std::vector<Scalar>& B_avg,
const double initial_bhp, // bhp from BHP constraints
const std::vector<double>& initial_potential,
Opm::DeferredLogger& deferred_logger);
Opm::DeferredLogger& deferred_logger) const;
template <class ValueType>
ValueType calculateBhpFromThp(const std::vector<ValueType>& rates, const Well2& well, const SummaryState& summaryState, Opm::DeferredLogger& deferred_logger) const;