mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Don't Assign Restart Rs/Rv Unless O/G Both Active
This enables running two-phase oil/water restart cases.
This commit is contained in:
@@ -2379,8 +2379,13 @@ private:
|
||||
this->solventSaturation_[elemIdx] = ssol;
|
||||
}
|
||||
|
||||
this->lastRs_[elemIdx] = elemFluidState.Rs();
|
||||
this->lastRv_[elemIdx] = elemFluidState.Rv();
|
||||
if (! this->lastRs_.empty()) {
|
||||
this->lastRs_[elemIdx] = elemFluidState.Rs();
|
||||
}
|
||||
|
||||
if (! this->lastRv_.empty()) {
|
||||
this->lastRv_[elemIdx] = elemFluidState.Rv();
|
||||
}
|
||||
|
||||
if constexpr (enablePolymer)
|
||||
this->polymerConcentration_[elemIdx] = eclWriter_->eclOutputModule().getPolymerConcentration(elemIdx);
|
||||
|
||||
Reference in New Issue
Block a user