Fixes for dumped no_edl SURFACE.

and EDL("charge", "xx") for no_edl SURFACE.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@8875 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2014-07-24 23:30:00 +00:00
parent cf02876f87
commit 76bd0c2908
2 changed files with 5 additions and 2 deletions

View File

@ -490,7 +490,7 @@ diff_layer_total(const char *total_name, const char *surface_name)
Utilities::replace("_", " ", token);
std::string::iterator b = token.begin();
std::string::iterator e = token.end();
CParser::copy_token(token, b, e);
CParser::copy_token(name, b, e);
}
if (surface_name != NULL)
{

View File

@ -3900,7 +3900,10 @@ tidy_min_surface(void)
}
/* area */
surface_charge_ptr->Set_grams(jit->second.Get_moles());
if (surface_charge_ptr)
{
surface_charge_ptr->Set_grams(jit->second.Get_moles());
}
/*
* make sure surface elements are in phase
* logically necessary for mass balance and to avoid negative concentrations when dissolving phase