Ions_Other(1) := (Concentration => Prob_Data.C_EC, Charge => 1.0);
Ions_Other(2) := (Concentration => Prob_Data.C_EC, Charge => 1.0);
I := Calculate_Ionic_Strength(Ions_Other);
- GM := Calculate_Activity_Coefficient(1.0, I);
- GN := Calculate_Activity_Coefficient(1.0, I);
+ GM := Calculate_Activity_Coefficient(Prob_Data.N, I);
+ GN := Calculate_Activity_Coefficient(Prob_Data.M, I);
C := Calculate_Sat_Concentration(Prob_Data.M, Prob_Data.N, Prob_Data.C_Ks, GM, GN);
if Ionic_Strength then
Ions_All(4) := (Concentration => C * Prob_Data.N, Charge => Prob_Data.M);
I_All := Calculate_Ionic_Strength(Ions_All);
- GM := Calculate_Activity_Coefficient(Prob_Data.M, I_All);
- GN := Calculate_Activity_Coefficient(Prob_Data.N, I_All);
+ GM := Calculate_Activity_Coefficient(Prob_Data.N, I_All);
+ GN := Calculate_Activity_Coefficient(Prob_Data.M, I_All);
C := Calculate_Sat_Concentration(Prob_Data.M, Prob_Data.N, Prob_Data.C_Ks, GM, GN);
end;