Skip to content

Commit 6e5133f

Browse files
author
Darth Vader
committed
Merge commit 'c960834c29f63cc7e43b2175565c4aa2e599e067'
2 parents 4393c8d + c960834 commit 6e5133f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/phast/PhreeqcRM/src/IPhreeqcPhast/IPhreeqc/phreeqcpp/kinetics.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1880,13 +1880,13 @@ set_reaction(int i, int use_mix, int use_kinetics)
18801880
/*
18811881
* Find surface
18821882
*/
1883-
if (use.Get_surface_in() && use.Get_kinetics_in() && use.Get_kinetics_ptr() && !use.Get_kinetics_ptr()->Get_use_cvode() && reaction_step > 1)
1884-
{
1885-
// use.Set_surface_ptr(Utilities::Rxn_find(Rxn_surface_map, i));
1886-
// appt: we may come here with zero kinetic reaction, but surface may have to keep DONNAN_DL
1887-
}
1888-
else
1889-
dl_type_x = cxxSurface::NO_DL;
1883+
//if (use.Get_surface_in() && use.Get_kinetics_in() && use.Get_kinetics_ptr() && !use.Get_kinetics_ptr()->Get_use_cvode() && reaction_step > 1)
1884+
//{
1885+
// // use.Set_surface_ptr(Utilities::Rxn_find(Rxn_surface_map, i));
1886+
// // appt: we may come here with zero kinetic reaction, but surface may have to keep DONNAN_DL
1887+
//}
1888+
//else
1889+
// dl_type_x = cxxSurface::NO_DL;
18901890
if (use.Get_surface_in() == TRUE)
18911891
{
18921892
use.Set_surface_ptr(Utilities::Rxn_find(Rxn_surface_map, i));

src/phast/PhreeqcRM/src/IPhreeqcPhast/IPhreeqc/phreeqcpp/mainsubs.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,8 @@ xsurface_save(int n_user)
14441444
temp_surface.Set_n_user(n_user);
14451445
temp_surface.Set_n_user_end(n_user);
14461446
temp_surface.Set_new_def(false);
1447-
temp_surface.Set_dl_type(dl_type_x);
1447+
//temp_surface.Set_dl_type(dl_type_x);
1448+
temp_surface.Set_dl_type(use.Get_surface_ptr()->Get_dl_type());
14481449
temp_surface.Set_solution_equilibria(false);
14491450
temp_surface.Set_n_solution(-999);
14501451

0 commit comments

Comments
 (0)