mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Properly Scale Solvent Saturation
Fixes a self-assignment issue.
This commit is contained in:
parent
344f6587fa
commit
622d6665ce
@ -632,7 +632,7 @@ public:
|
|||||||
Scalar St = Sw + Sg + Ssol;
|
Scalar St = Sw + Sg + Ssol;
|
||||||
assert(St>0.5);
|
assert(St>0.5);
|
||||||
Sw=Sw/St;
|
Sw=Sw/St;
|
||||||
Ssol=Ssol;
|
Ssol=Ssol/St;
|
||||||
if (waterEnabled)
|
if (waterEnabled)
|
||||||
(*this)[Indices::waterSaturationIdx]= Sw;
|
(*this)[Indices::waterSaturationIdx]= Sw;
|
||||||
if (enableSolvent)
|
if (enableSolvent)
|
||||||
|
Loading…
Reference in New Issue
Block a user