Properly Scale Solvent Saturation

Fixes a self-assignment issue.
This commit is contained in:
Bård Skaflestad 2020-05-24 12:13:09 +02:00
parent 344f6587fa
commit 622d6665ce

View File

@ -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)