mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Force solvent saturation between [0,1]
This commit is contained in:
parent
55fc987af8
commit
6716ca63c9
@ -706,6 +706,7 @@ namespace Opm {
|
||||
if (has_solvent_) {
|
||||
double& ss = priVars[Indices::solventSaturationIdx];
|
||||
ss -= satScaleFactor * dss;
|
||||
ss = std::min(std::max(ss, 0.0),1.0);
|
||||
}
|
||||
if (has_polymer_) {
|
||||
double& c = priVars[Indices::polymerConcentrationIdx];
|
||||
|
Loading…
Reference in New Issue
Block a user