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:
Ian Bell
2014-11-12 18:34:21 -05:00
parent 0237924576
commit fd8d986059
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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;
}
};