Merge pull request #611 from bska/fix-self-assignment

Properly Scale Solvent Saturation
This commit is contained in:
hnil 2020-05-25 11:10:06 +02:00 committed by GitHub
commit be6de85968

View File

@ -632,7 +632,7 @@ public:
Scalar St = Sw + Sg + Ssol;
assert(St>0.5);
Sw=Sw/St;
Ssol=Ssol;
Ssol=Ssol/St;
if (waterEnabled)
(*this)[Indices::waterSaturationIdx]= Sw;
if (enableSolvent)