mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-30 08:18:18 -05:00
Implemented PQ for pseudo-pure to close https://github.com/CoolProp/CoolProp/issues/92
* As a consequence, made update function take CoolProp::input_pairs enum as first input (thanks @jowr for the idea) * Decoupled the pre_update and post_update functions in order to allow for more creative update functions using guess values, etc. Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -386,7 +386,7 @@ double _PropsSI(const std::string &Output, const std::string &Name1, double Prop
|
||||
}
|
||||
|
||||
// Obtain the input pair
|
||||
long pair = generate_update_pair(iName1, Prop1, iName2, Prop2, x1, x2);
|
||||
CoolProp::input_pairs pair = generate_update_pair(iName1, Prop1, iName2, Prop2, x1, x2);
|
||||
|
||||
// Update the state
|
||||
State->update(pair, x1, x2);
|
||||
|
||||
Reference in New Issue
Block a user