mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 08:20:01 -06:00
Fix bug in setting the max oil saturation after restart
This commit is contained in:
parent
875aafe0f9
commit
b89a960a50
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user