DynamicState::update() will return bool.

This commit is contained in:
Joakim Hove
2015-06-23 09:22:39 +02:00
parent bc3b9837e0
commit ddde52ad4c
9 changed files with 124 additions and 20 deletions

View File

@@ -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);
}
}