diff --git a/feos-core/CHANGELOG.md b/feos-core/CHANGELOG.md index af19b95b3..edb29f509 100644 --- a/feos-core/CHANGELOG.md +++ b/feos-core/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased +### Fixed +- Fixed a bug that caused the bubble and dew point solvers to ignore the initial values for the opposing phase given by the user if no initial value for temperature/pressure was also given. [#138](https://github.com/feos-org/feos/pull/138) ## [0.4.0] - 2023-01-27 ### Added diff --git a/feos-core/src/phase_equilibria/bubble_dew.rs b/feos-core/src/phase_equilibria/bubble_dew.rs index f6f8a6c79..e64920c8e 100644 --- a/feos-core/src/phase_equilibria/bubble_dew.rs +++ b/feos-core/src/phase_equilibria/bubble_dew.rs @@ -142,7 +142,7 @@ impl PhaseEquilibrium { tp_spec, p, molefracs_spec, - Some(&x), + molefracs_init.or(Some(&x)), bubble, options, )