From 21df9497a0c5083f8e6add67e29601662ff47598 Mon Sep 17 00:00:00 2001 From: Darth Vader Date: Mon, 18 Nov 2024 21:29:52 +0000 Subject: [PATCH] Squashed 'src/' changes from 57b3a6cd..ce34aa5e ce34aa5e Merge commit '8184121c90728d5026fa0485302e4584a559ffd8' 8184121c Squashed 'phreeqcpp/' changes from f5587da..b576c75 git-subtree-dir: src git-subtree-split: ce34aa5e05ddf53f5b3b7ae2240437d31a736f4a --- phreeqcpp/kinetics.cpp | 14 +++++++------- phreeqcpp/mainsubs.cpp | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/phreeqcpp/kinetics.cpp b/phreeqcpp/kinetics.cpp index 2f6f6592..8b427856 100644 --- a/phreeqcpp/kinetics.cpp +++ b/phreeqcpp/kinetics.cpp @@ -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)); diff --git a/phreeqcpp/mainsubs.cpp b/phreeqcpp/mainsubs.cpp index 27cb9ad2..ba317af0 100644 --- a/phreeqcpp/mainsubs.cpp +++ b/phreeqcpp/mainsubs.cpp @@ -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);