DynamicState::update() will return bool.
This commit is contained in:
@@ -16,4 +16,22 @@ namespace Opm {
|
||||
controlMode = WellInjector::CMODE_UNDEFINED;
|
||||
}
|
||||
|
||||
|
||||
bool WellInjectionProperties::operator==(const WellInjectionProperties& other) const {
|
||||
if ((surfaceInjectionRate == other.surfaceInjectionRate) &&
|
||||
(reservoirInjectionRate == other.reservoirInjectionRate) &&
|
||||
(BHPLimit == other.BHPLimit) &&
|
||||
(THPLimit == other.THPLimit) &&
|
||||
(predictionMode == other.predictionMode) &&
|
||||
(injectionControls == other.injectionControls) &&
|
||||
(injectorType == other.injectorType) &&
|
||||
(controlMode == other.controlMode))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
bool WellInjectionProperties::operator!=(const WellInjectionProperties& other) const {
|
||||
return !(*this == other);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user