Need to set new_def to trap error with surface related to rate.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@10634 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2015-12-30 21:25:06 +00:00
parent dec66bb848
commit 8f51d9279b

View File

@ -6151,6 +6151,8 @@ check_same_model(void)
(kinetics_ptr->Find(use.Get_surface_ptr()->Get_surface_comps()[i].Get_rate_name()) == NULL))
{
Rxn_new_surface.insert(use.Get_n_surface_user());
cxxSurface *surf_ptr = Utilities::Rxn_find(Rxn_surface_map, use.Get_n_surface_user());
surf_ptr->Set_new_def(true);
this->tidy_kin_surface();
return (FALSE);
}