Skip to content

Commit

Permalink
Squashed 'src/phast/PhreeqcRM/' changes from 8f04d76b..3020a662
Browse files Browse the repository at this point in the history
3020a662 Merge commit 'b2c5566ad7c5b1806f496a9512c32a70b89a643d'
b2c5566a Squashed 'src/' changes from 274ce014..164c290b

git-subtree-dir: src/phast/PhreeqcRM
git-subtree-split: 3020a6620943ac3f2cdb2d4884ec46e196a397b9
  • Loading branch information
Darth Vader committed Nov 18, 2024
1 parent d7ce1e4 commit c960834
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/IPhreeqcPhast/IPhreeqc/phreeqcpp/kinetics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1880,13 +1880,13 @@ set_reaction(int i, int use_mix, int use_kinetics)
/*
* Find surface
*/
if (use.Get_surface_in() && use.Get_kinetics_in() && use.Get_kinetics_ptr() && !use.Get_kinetics_ptr()->Get_use_cvode() && reaction_step > 1)
{
// use.Set_surface_ptr(Utilities::Rxn_find(Rxn_surface_map, i));
// appt: we may come here with zero kinetic reaction, but surface may have to keep DONNAN_DL
}
else
dl_type_x = cxxSurface::NO_DL;
//if (use.Get_surface_in() && use.Get_kinetics_in() && use.Get_kinetics_ptr() && !use.Get_kinetics_ptr()->Get_use_cvode() && reaction_step > 1)
//{
// // use.Set_surface_ptr(Utilities::Rxn_find(Rxn_surface_map, i));
// // appt: we may come here with zero kinetic reaction, but surface may have to keep DONNAN_DL
//}
//else
// dl_type_x = cxxSurface::NO_DL;
if (use.Get_surface_in() == TRUE)
{
use.Set_surface_ptr(Utilities::Rxn_find(Rxn_surface_map, i));
Expand Down
3 changes: 2 additions & 1 deletion src/IPhreeqcPhast/IPhreeqc/phreeqcpp/mainsubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,8 @@ xsurface_save(int n_user)
temp_surface.Set_n_user(n_user);
temp_surface.Set_n_user_end(n_user);
temp_surface.Set_new_def(false);
temp_surface.Set_dl_type(dl_type_x);
//temp_surface.Set_dl_type(dl_type_x);
temp_surface.Set_dl_type(use.Get_surface_ptr()->Get_dl_type());
temp_surface.Set_solution_equilibria(false);
temp_surface.Set_n_solution(-999);

Expand Down

0 comments on commit c960834

Please sign in to comment.