put back piece in molalities that was necessary after all

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@7720 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2013-05-14 22:52:24 +00:00
parent ba25fabd68
commit 96285f2250

View File

@ -2290,18 +2290,18 @@ molalities(int allow_overflow)
else
{
s_x[i]->moles = under(s_x[i]->lm) * mass_water_aq_x;
//if (s_x[i]->moles / mass_water_aq_x > 100)
//{
// log_msg(sformatf( "Overflow: %s\t%e\t%e\t%d\n",
// s_x[i]->name,
// (double) (s_x[i]->moles / mass_water_aq_x),
// (double) s_x[i]->lm, iterations));
if (s_x[i]->moles / mass_water_aq_x > 100)
{
log_msg(sformatf( "Overflow: %s\t%e\t%e\t%d\n",
s_x[i]->name,
(double) (s_x[i]->moles / mass_water_aq_x),
(double) s_x[i]->lm, iterations));
// if (iterations >= 0 && allow_overflow == FALSE)
// {
// return (ERROR);
// }
//}
if (iterations >= 0 && allow_overflow == FALSE)
{
return (ERROR);
}
}
}
}