Skip to content

Commit 8b5859a

Browse files
authored
Fix unexpected behavior in the initialization of bubble and dew point calculations (#138)
* Fix unexpected behavior in the initialization of bubble and dew point calculations * Add changelog entry
1 parent 58b608e commit 8b5859a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

feos-core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## Unreleased
8+
### Fixed
9+
- 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)
810

911
## [0.4.0] - 2023-01-27
1012
### Added

feos-core/src/phase_equilibria/bubble_dew.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl<E: EquationOfState> PhaseEquilibrium<E, 2> {
142142
tp_spec,
143143
p,
144144
molefracs_spec,
145-
Some(&x),
145+
molefracs_init.or(Some(&x)),
146146
bubble,
147147
options,
148148
)

0 commit comments

Comments
 (0)