mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-23 21:08:06 -05:00
Add a SimpleState fill() function and use it
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -112,17 +112,8 @@ bool AbstractState::clear() {
|
||||
this->_TVanc.clear();
|
||||
this->_TLanc.clear();
|
||||
|
||||
this->_critical.T = -_HUGE;
|
||||
this->_critical.hmolar = -_HUGE;
|
||||
this->_critical.p = -_HUGE;
|
||||
this->_critical.rhomolar = -_HUGE;
|
||||
this->_critical.smolar = -_HUGE;
|
||||
|
||||
this->_reducing.T = -_HUGE;
|
||||
this->_reducing.hmolar = -_HUGE;
|
||||
this->_reducing.p = -_HUGE;
|
||||
this->_reducing.rhomolar = -_HUGE;
|
||||
this->_reducing.smolar = -_HUGE;
|
||||
this->_critical.fill(_HUGE);
|
||||
this->_reducing.fill(_HUGE);
|
||||
|
||||
/// Bulk values
|
||||
this->_rhomolar = -_HUGE;
|
||||
|
||||
Reference in New Issue
Block a user