mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-25 22:08:24 -05:00
Slightly more useful error message for missing limits for hs ancillaries
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -24,7 +24,6 @@ SaturationAncillaryFunction::SaturationAncillaryFunction(rapidjson::Value &json_
|
||||
Tmax = cpjson::get_double(json_code,"Tmax");
|
||||
}
|
||||
catch (std::exception &e){
|
||||
std::cout << "Missing Tmin, Tmax" << std::endl;
|
||||
Tmin = _HUGE;
|
||||
Tmax = _HUGE;
|
||||
}
|
||||
|
||||
@@ -1022,6 +1022,9 @@ protected:
|
||||
else{
|
||||
if (get_debug_level() > 0){ std::cout << "Missing sLV ancillary for fluid " << fluid.name; }
|
||||
}
|
||||
if (!ValidNumber(fluid.ancillaries.sL.get_Tmin())){
|
||||
std::cout << "Tmin invalid for sL for " << fluid.name << std::endl;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user