This commit is contained in:
Tor Harald Sandve 2018-02-21 10:41:27 +01:00
parent 9372f9d2ca
commit d15a86b039

View File

@ -564,8 +564,9 @@ public:
simulator.setTimeStepSize(dt);
}
bool doInvalidate = updateHysteresis_();
doInvalidate = updateMaxOilSaturation_() || doInvalidate;
const bool invalidateFromHyst = updateHysteresis_();
const bool invalidateFromMaxOilSat = updateMaxOilSaturation_();
const bool doInvalidate = invalidateFromHyst || invalidateFromMaxOilSat;
if (GET_PROP_VALUE(TypeTag, EnablePolymer))
updateMaxPolymerAdsorption_();