Repository navigation
What's Changed
Fix inexact slope solver pH from TA by @briochemc in #9:
-
In this release, changes are made to the iterative solver to determine pH from TA and DIC inputs (
CalculatepHfromTATC). This prevents the solver from hanging in certain cases, for example when input phosphate values are extremely high. The solver now computes the exact slope used to calculate the Newton step to determine the pH change from one iteration to the next. For now, this is implemented only for the pH from TA+DIC solver, but could be implemented for the other iterative pH solvers in the future as well. -
As part of this update to the solver, the
FindpHOnAllScalessubfunction was updated to optionally output pH scale conversion factors, useful in computing partial derivatives of H on the free scale with respect to the input scale within the pH solver. -
A new script called
compare_against_masteris also added, which uses git to switch between a specific release tag and the current commit for comparison between versions.
Additional Changes:
- In addition, a typo in the calculation of the ammonia dissociation constant from Clegg and Whitfield (1995) has been fixed (thanks to issue #13 raised by @XEnterNameX).