Add argument when calling injection controls

This commit is contained in:
Joakim Hove 2019-06-22 07:26:51 +02:00
parent bf6a0335b0
commit e4d030c891
3 changed files with 3 additions and 3 deletions

View File

@ -704,7 +704,7 @@ ProductionControls Well2::productionControls(const SummaryState& st) const {
InjectionControls Well2::injectionControls(const SummaryState& st) const {
if (!this->isProducer()) {
auto controls = this->injection->controls(st);
auto controls = this->injection->controls(this->unit_system, st, this->udq_undefined);
controls.prediction_mode = this->predictionMode();
return controls;
} else

View File

@ -246,7 +246,7 @@ namespace Opm {
}
InjectionControls WellInjectionProperties::controls(const SummaryState&) const {
InjectionControls WellInjectionProperties::controls(const UnitSystem& unit_system, const SummaryState&, double udq_default) const {
InjectionControls controls(this->injectionControls);
controls.surface_rate = this->surfaceInjectionRate;

View File

@ -73,7 +73,7 @@ namespace Opm {
void resetDefaultHistoricalBHPLimit();
void setBHPLimit(const double limit);
InjectionControls controls(const SummaryState& st) const;
InjectionControls controls(const UnitSystem& unit_system, const SummaryState& st, double udq_default) const;
};
std::ostream& operator<<( std::ostream&, const WellInjectionProperties& );