Add argument when calling injection controls
This commit is contained in:
parent
bf6a0335b0
commit
e4d030c891
@ -704,7 +704,7 @@ ProductionControls Well2::productionControls(const SummaryState& st) const {
|
|||||||
|
|
||||||
InjectionControls Well2::injectionControls(const SummaryState& st) const {
|
InjectionControls Well2::injectionControls(const SummaryState& st) const {
|
||||||
if (!this->isProducer()) {
|
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();
|
controls.prediction_mode = this->predictionMode();
|
||||||
return controls;
|
return controls;
|
||||||
} else
|
} else
|
||||||
|
@ -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);
|
InjectionControls controls(this->injectionControls);
|
||||||
|
|
||||||
controls.surface_rate = this->surfaceInjectionRate;
|
controls.surface_rate = this->surfaceInjectionRate;
|
||||||
|
@ -73,7 +73,7 @@ namespace Opm {
|
|||||||
void resetDefaultHistoricalBHPLimit();
|
void resetDefaultHistoricalBHPLimit();
|
||||||
|
|
||||||
void setBHPLimit(const double limit);
|
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& );
|
std::ostream& operator<<( std::ostream&, const WellInjectionProperties& );
|
||||||
|
Loading…
Reference in New Issue
Block a user