Fix bug in setting the max oil saturation after restart

This commit is contained in:
Tor Harald Sandve 2018-02-19 08:46:27 +01:00
parent 875aafe0f9
commit b89a960a50

View File

@ -1008,7 +1008,7 @@ public:
void initHysteresisParams(Simulator& simulator, unsigned elemIdx) const {
if (soMax_.size() > 0)
simulator.problem().setMaxOilSaturation(soMax_[elemIdx], elemIdx);
simulator.problem().setMaxOilSaturation(elemIdx, soMax_[elemIdx]);
if (simulator.problem().materialLawManager()->enableHysteresis()) {
auto matLawManager = simulator.problem().materialLawManager();